Spring Data JPA: Ultimate Guide to Custom Queries with @Query Annotation

Thorben Janssen
Thorben Janssen
87.5 هزار بار بازدید - 5 سال پیش - In this video, I will
In this video, I will show you how to define and use custom queries with Spring Data JPA. You will learn how to execute JPQL and native queries, use an expression language in your queries and execute queries that INSERT, UPDATE, or REMOVE records.
But before we start, if this is your first time here, and you want to learn how to create your entity mappings with ease, build incredible efficient persistence layers with Hibernate and all types of other Java persistence related stuff, start now by subscribing and clicking the bell, so you don't miss anything.
Derived queries are very comfortable to use as long as the queries are not too complicated. But as soon as you use more than 2-3 query parameters or need to define multiple joins to other entities, you need a more flexible approach. In these situations, you better use Spring Data JPA’s @Query annotation to specify a custom JPQL or native SQL query.

If you like this video, please give me your thumbs up and share it with your friends and co-workers.

Like my channel? Subscribe!
http://bit.ly/2cUsid8

Join the free Member Library:
https://goo.gl/dtyIIC

Read the accompanying post: https://thoughts-on-java.org/spring-d...

Want to connect with me?
Blog: http://www.thoughts-on-java.org/
Twitter: Twitter: thjanssen123
Facebook: Facebook: thoughtsonjava

#JPA #Spring
5 سال پیش در تاریخ 1398/07/03 منتشر شده است.
87,577 بـار بازدید شده
... بیشتر