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

Update native query documentation. #3637

Closed
wants to merge 2 commits into from
Closed

Update native query documentation. #3637

wants to merge 2 commits into from

Conversation

christophstrobl
Copy link
Member

Resolves: #3636

<1> Single `Map` result backed by a `Tuple`.
<2> Multiple `Map` results backed by ``Tuple``s.
====

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should mention that this only works for Hibernate.

public interface UserRepository extends JpaRepository<User, Long> {

@NativeQuery("SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1")
Map<String, Object> findRawMapByEmail(String emailAddress); <1>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Formatting of <1> isn't aligned with <2>

@mp911de mp911de force-pushed the main branch 3 times, most recently from 52ee55f to 61e6d36 Compare October 9, 2024 07:35
mp911de pushed a commit that referenced this pull request Oct 17, 2024
Closes #3636
Original pull request: #3637
mp911de added a commit that referenced this pull request Oct 17, 2024
Mention restrictions.

See #3636
Original pull request: #3637
mp911de pushed a commit that referenced this pull request Oct 17, 2024
Closes #3636
Original pull request: #3637
mp911de added a commit that referenced this pull request Oct 17, 2024
Mention restrictions.

See #3636
Original pull request: #3637
mp911de pushed a commit that referenced this pull request Oct 17, 2024
Closes #3636
Original pull request: #3637
mp911de added a commit that referenced this pull request Oct 17, 2024
Mention restrictions.

See #3636
Original pull request: #3637
@mp911de mp911de added the type: documentation A documentation update label Oct 17, 2024
@mp911de mp911de closed this Oct 17, 2024
@mp911de mp911de deleted the issue/3636 branch October 17, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow returning Map from the repository methods
2 participants