Skip to content

mysql IN operator: An operation is not implemented: couldn't find mapping for class java.util.ArrayList #289

Open
@sysmat

Description

@sysmat
  • code
String sql = "SELECT id, name FROM organization WHERE status='ok' AND id IN (?)"
 List<List<Integer>> list = new ArrayList<>();
 list.add(orgsId);
con.sendPreparedStatement(sql, list)
               .get()
               .getRows()
               .forEach(row ->{
                   result.add(new Org(row.getInt(0), row.getString(1)));
                });
  • error: An operation is not implemented: couldn't find mapping for class java.util.ArrayList

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions