Skip to content

Add @NativeQuery annotation #3353

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

Conversation

danvandeee
Copy link
Contributor

Annotation to declare native queries directly on repository methods. NativeQuery acts as a shortcut for @query(nativeQuery = true)

See #3155

Annotation to declare native queries directly on repository methods. NativeQuery acts as a shortcut for @query(nativeQuery = true)

See spring-projects#3155
@christophstrobl
Copy link
Member

@danvandeee thank you for the PR we'll have a look soon.

@danvandeee
Copy link
Contributor Author

Hi @christophstrobl any update on this? If not needed i am also fine by deleting the implementation

@christophstrobl
Copy link
Member

thanks for the ping - it's on the list - we've just not yet gotten to it.

@mp911de mp911de assigned mp911de and unassigned christophstrobl Jun 21, 2024
@mp911de mp911de added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 21, 2024
@mp911de mp911de changed the title Implement NativeQuery annotation. Add @NativeQuery annotation Jun 24, 2024
@mp911de mp911de linked an issue Jun 26, 2024 that may be closed by this pull request
@mp911de mp911de added this to the 3.4 M1 (2024.1.0) milestone Jun 26, 2024
mp911de pushed a commit that referenced this pull request Jun 26, 2024
Annotation to declare native queries directly on repository methods. NativeQuery acts as a shortcut for @query(nativeQuery = true)

Closes #3155
Original pull request: #3353
mp911de added a commit that referenced this pull request Jun 26, 2024
Add tests, update documentation, add support for SQL ResultSet mapping.

See #3155
Original pull request: #3353
mp911de added a commit that referenced this pull request Jun 26, 2024
@mp911de
Copy link
Member

mp911de commented Jun 26, 2024

Thank you for your contribution. That's merged and polished now.

@mp911de mp911de closed this Jun 26, 2024
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 @NativeQuery annotation as alias for @Query(nativeQuery=true)
4 participants