Class BaseSpecs
java.lang.Object
io.github.xezzon.zeroweb.common.jpa.BaseSpecs
- Author:
- xezzon
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.springframework.data.jpa.domain.Specification<T>
构造`WHERE TRUE;`的 JPA Specification。static <T> org.springframework.data.jpa.domain.Specification<T>
构造`WHERE FALSE;`的 JPA Specification。
-
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
-