+ -
当前位置:首页 → 问答吧 → criteria的分页Example方法问题??

criteria的分页Example方法问题??

时间:2011-12-01

来源:互联网

使用cirteria的分页,为什么使用Example来实例化,如果不用他的话,直接接收实体的话,不也是没问题??
而且Example里面的这些属性代表什么意思?
example.excludeNone(); 
example.excludeZeroes(); 
example.ignoreCase(); 
example.enableLike(MatchMode.ANYWHERE);

作者: m540920181   发布时间: 2011-12-01

我明白了,那个作用是:实例化实体,判断如果有空值时,不会再后台报错,正常运行

作者: m540920181   发布时间: 2011-12-19

热门下载

更多