Hibernate not equal example criteria

后端 未结 3 656
盖世英雄少女心
盖世英雄少女心 2020-12-17 16:19

Hibernate has example criteria: For example:

Example equal = Example.create(mydbObject);

Is there a way to do the opposite, For example:

3条回答
  •  甜味超标
    2020-12-17 16:31

    Use it with s.createCriteria(YourClass.class).add(Restrictions.not(notEqual));.

提交回复
热议问题