Skip to content
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();
Clone this wiki locally