Last active
May 16, 2019 00:58
-
-
Save sohangp/e233de9545823769fe45f7e1310d0df0 to your computer and use it in GitHub Desktop.
JPA Repository
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
@Repository | |
public interface CustomerRepository extends JpaRepository<CustomerEntity, Integer> { | |
@Query(name = "customerEntity.getCustomerDetails", nativeQuery = true) | |
List<CustomerDetailsDTO> getCustomerDetails(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment