Code: Select all
/**
* Simple static factory method to add some syntactic sugar around a {@link Specification}.
*
* @param the type of the {@link Root} the resulting {@literal Specification} operates on.
* @param spec can be {@literal null}.
* @return guaranteed to be not {@literal null}.
* @since 2.0
* @deprecated since 3.5.
*/
@Deprecated(since = "3.5.0", forRemoval = true)
static Specification where(@Nullable Specification spec);
< /code>
Beschreibung dieser Methode erklärt nicht, wie man sie durch eine andere nicht veraltete Methode ersetzt. Haben wir eine andere Methode, um eine leere Spezifikation ohne Abschaltungsmethoden zu erstellen? < /P>
final var spec = Specification.where(null);