SQLTemplates templates = new MySQLTemplates(); HibernateSQLQuery query = new HibernateSQLQuery(session, templates);
Collection collection = new ArrayList(); collection.add("test1"); collection.add("test");
query.from(example).where(example.column.in(collection));
it's returning
select example.* from example example where example.column in ?, ?
It fails due to MySQL needing parens - in (?,?)
Is this a bug or am I doing something wrong?
SQLTemplates templates = new MySQLTemplates(); ry(session, templates);
HibernateSQLQuery query = new HibernateSQLQue
Collection collection = new ArrayList(); add("test1" ); add("test" );
collection.
collection.
query.from( example) .where( example. column. in(collection) );
it's returning
select example.*
from example example
where example.column in ?, ?
It fails due to MySQL needing parens - in (?,?)
Is this a bug or am I doing something wrong?