Introduction
In this article iam trying to explain how to work with derived query methods in Spring Data JPA
In Sping Data JPA based on method name we can get the data from data based table ( but method must be named with defined format only ). These derived methods also called as Query methods, because we can annotate these methods with @Query to get the execution of custom query too. We have to write all these derived methods in the repository interface which extends JPA repositories ( example JPARepository or CrudRepository )
Post a Comment
Post a Comment