Class BaseSpecs

java.lang.Object
io.github.xezzon.zeroweb.common.jpa.BaseSpecs

public class BaseSpecs extends Object
Author:
xezzon
  • Method Details

    • identicallyEqual

      public static <T> org.springframework.data.jpa.domain.Specification<T> identicallyEqual()
      构造`WHERE TRUE;`的 JPA Specification。
      Type Parameters:
      T - 目标类型
      Returns:
      永远为 true 的 Specification
    • identicallyNotEqual

      public static <T> org.springframework.data.jpa.domain.Specification<T> identicallyNotEqual()
      构造`WHERE FALSE;`的 JPA Specification。
      Type Parameters:
      T - 目标类型
      Returns:
      永远为 false 的 Specification