Hibernate 查询语句用法记录

Hibernate 查询MatchMode的四种模式

MatchMode.START:字符串在最前面的位置.相当于"like 'key%'"
MatchMode.END:字符串在最后面的位置.相当于"like '%key'"
MatchMode.ANYWHERE:字符串在中间匹配.相当于"like '%key%'"
MatchMode.EXACT:字符串精确匹配.相当于"like 'key'"

posted @ 2018-04-02 16:30  DanBrown  阅读(221)  评论(0编辑  收藏  举报