java - How to match any integer in hibernate? -


to match string table , use restrictions.like("fieldname","%") . how achieve same when matching field integer?

restrictions has many methods eq, ge,gt,le, lt, in 

you can use 1 above depending on contition check.

refer api doc


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -