Skip to content

Reintroduce Specification.where(Specification) #3992

@mp911de

Description

@mp911de

See #3893 and user feedback:

Specifically, the static where(...) method now expects a PredicateSpecification instead of a Specification. This causes compile-time errors in existing projects that rely on Specification builders.

Would it be possible to provide an overload of where(...) that still accepts Specification (delegating internally to PredicateSpecification), or any kind of polymorphic support? This would greatly simplify migration by avoiding a large-scale refactor of existing specifications.

We should consider reintroducing Specification.where(Specification) to simplify the migration to Spring Data JPA 4.0.

Metadata

Metadata

Assignees

Labels

for: team-attentionAn issue we need to discuss as a team to make progresstype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions