Hibernate 查询MatchMode的四种模式

Hibernate 查询MatchMode的四种模式

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

你可能感兴趣的:(Hibernate 查询MatchMode的四种模式)