-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed as not planned
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
I really like the ability to used named queries in Spring Boot JPA, however sometimes the method names can get very lengthy.
Suggestion to be able to alias a method in a repository to shorten the name.
For example
Instead of having a method like
public List<Customer> getCustomerByNameAndAddressSortByDataOfBirthDesc() {}
Could we reuse the named method functionality to allow the named query without having to explicity define the query, so something like
@Alias(for = "getCustomerByNameAndAddressSortByDataOfBirthDesc")
public List<Customer> getCustomers() {}
Just a thought
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply