-
-
Notifications
You must be signed in to change notification settings - Fork 18
getRestrictions
Jorge Reyes edited this page May 29, 2015
·
3 revisions
Get our hibernate org.hibernate.criterion.Restrictions proxy object
###Returns
- This function returns coldbox.system.orm.hibernate.criterion.Restrictions
###Examples
// Restrictions used with criteria queries
var r = ormService.getRestrictions();
var users = ormService.newCriteria("User")
.or( r.eq("lastName","majano"), r.gt("createDate", now()) )
.list();