views:

318

answers:

1

For some reason I can never figure out how to do things via criteria api.

I have a HQL:

from Track track where size(track.trackTitles) > 1

Is it possible to convert it into a criteria query on Track class? If yes, how: what Restriction should I use?

+3  A: 

Restrictions.sizeGt("trackTitles", 1)

axtavt
Thanks a lot! Shame on me for not looking javadoc up; tho, their megadocumentation is utterly silent about this.
alamar