Saturday, 15 June 2013

Hibernate IN Clause with multiple columns -



Hibernate IN Clause with multiple columns -

need know how build hibernate query fetches results matching in clause containing multiple column values.

e.g.,

query query=session.createquery( "from entity e (e.abc, e.xyz) in (:list)" ); query.setparameterlist( "list", list );

here list 2d array contain basic wrapper objects primitive types e.g., integer, string etc.

is possible?

what asking here known tuple syntax. supported hibernate unfortunately many databases no back upwards ...

http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html#queryhql-tuple

hibernate

No comments:

Post a Comment