Due to how CriteriaQuery and CriteriaDelete are structured in jakarta.persistence the toPredicate method of Specification can not be used for deletes because of its CriteriaQuery parameter.
We should find a way to allow users to express their needs in another way than having to pass in null to satisfy the API.
Due to how
CriteriaQuery
andCriteriaDelete
are structured injakarta.persistence
thetoPredicate
method ofSpecification
can not be used for deletes because of itsCriteriaQuery
parameter. We should find a way to allow users to express their needs in another way than having to pass innull
to satisfy the API.Related to: #3036