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.
Loading...
Related Quiz
- Suppose you are developing a Spring Boot application using Spring Data JPA and are experiencing performance issues due to the loading of a large dataset. How would you optimize the data loading to mitigate the performance issues?
- In a Spring Boot application, the HTTP request body can be deserialized using the _____ annotation.
- How can you configure multiple data sources in a Spring Boot application?
- In a Spring Boot application, how would you handle a scenario where different microservices need to work with different databases and schemas?
- Which of the following is true about the deleteById method of a JpaRepository?