When creating a custom query in Spring Data JPA, the _____ annotation is used to modify the underlying query execution.

  • @CustomQuery
  • @JpaQuery
  • @ModifyQuery
  • @Query
When creating a custom query in Spring Data JPA, the @Query annotation is used to modify the underlying query execution. It allows developers to define custom JPQL or native SQL queries and attach them to repository methods. This annotation provides flexibility in crafting specific queries tailored to the application's needs.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *