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?
Restrictions.sizeGt("trackTitles", 1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With