Modifiers
Query Modifiers
c.timeout( 5000 )
c.readOnly(true)
c.firstResult(20).maxResults(50).fetchSize(10).cacheRegsion('my.awesome.region')
c.cache(true,'my.region')
c.order('lastName','desc',true);
newCriteria()
.eq( "this", value )
.peek( function(criteria){
systemOutput( "CurrentSQL: #criteria.getSQLLog()#" )
})
.when( !isNull( arguments.published ), function( c ){
c.eq( "isPublished", published )
})
.list();Result Modifiers
Last updated
Was this helpful?