Created
April 2, 2024 21:30
-
-
Save httpmurilo/c8d2b24fdfdb74ee4af00ae3b1cbc749 to your computer and use it in GitHub Desktop.
IUserRepository.java
This file contains hidden or 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