Skip to content

Clarify behavior when both (named and provided query) are configured through @Query #1061

@mp911de

Description

@mp911de

We should clarify what should happen when a query annotation is configured with a query and a named query:

@Query(value="select * from User", name = "User.findBySpringDataNamedQuery")

Right now, the provided string query is used. Ideally, we do something towards helping to understand that such a configuration creates ambiguity.

See also spring-projects/spring-data-jpa#2319.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions