关键字: hibernate expression hibernate Expression详解
Expression.gt:对应SQL条件中的"field > value "。如:Expression.gt("salary", new Integer(5000))
Expression.ge:对应SQL条件中的"field >= value"。
Expression.lt:对应SQL条件中的"field < value"。
Expression.le:对应SQL条件中的"field <= value"。
Expression.between:对应SQL条件中的"between"。
Expression.like:对应SQL条件中的"field like value"。
Expression.in:对应SQL条件中的"field in …"。
Expression.eqProperty:用于比较两个属性之间的值,对应SQL条件中的"field = field"。如:Expression.eqProperty("Employee.id", "Group.eid");
Expression.gtProperty:用于比较两个属性之间的值,对应SQL条件中的"field > field"。
Expression.geProperty:用于比较两个属性之间的值,对应SQL条件中的"field >= field"。
Expression.ltProperty:用于比较两个属性之间的值,对应SQL条件中的"field < field"。
Expression.leProperty:用于比较两个属性之间的值,对应SQL条件中的"field <= field"。
Expression.and:and关系组合。

相关文章:

  • 2022-02-04
  • 2022-12-23
  • 2021-12-14
  • 2021-10-26
  • 2021-11-30
  • 2021-07-11
  • 2021-10-05
  • 2021-08-27
猜你喜欢
  • 2021-05-17
  • 2021-07-27
  • 2021-12-27
  • 2022-02-23
  • 2021-06-15
  • 2021-08-03
相关资源
相似解决方案