Created
April 2, 2024 22:37
-
-
Save httpmurilo/f37551991cae80fb6479312c833ac470 to your computer and use it in GitHub Desktop.
IUserRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IUserRepository extends JpaRepository<User, Integer> { | |
@Query(value = "SELECT * FROM User WHERE name = '?1'", nativeQuery = true) | |
User getUserByName(String name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment