Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for repository query method projections #980

Closed
wants to merge 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented May 17, 2021

JDBC repository methods now support interface and DTO projections by specifying either the projection type as the return type or using generics and providing a Class parameter to query methods.

Closes #971

JDBC repository methods now support interface and DTO projections by specifying either the projection type as return type or using generics and providing a Class parameter to query methods.
Remove superfluous public keyword where not required.
@mp911de mp911de requested a review from schauder May 17, 2021 13:40
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 17, 2021
schauder pushed a commit that referenced this pull request May 18, 2021
JDBC repository methods now support interface and DTO projections by specifying either the projection type as return type or using generics and providing a Class parameter to query methods.

Closes #971
Original pull request #980
schauder pushed a commit that referenced this pull request May 18, 2021
Remove superfluous public keyword where not required.

Original pull request #980
schauder added a commit that referenced this pull request May 18, 2021
Original pull request #980
schauder added a commit that referenced this pull request May 18, 2021
Added Javadoc, removed superfluous code.

Original pull request #980
@schauder
Copy link
Contributor

I tweaked it a little to avoid joins for tables that aren't used in the projection and merged it.

@schauder schauder closed this May 18, 2021
@schauder schauder added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels May 18, 2021
@schauder schauder deleted the query-method-projections branch May 18, 2021 14:07
@lpandzic lpandzic mentioned this pull request Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for projections using repository query methods
3 participants