Spring Data JPA Criteria API | JPA meta model classes | JPA Specifications

  Рет қаралды 40,862

Techno Town Techie

Techno Town Techie

Күн бұрын

You will learn how to use the Criteria API in Spring Data JPA and JPA meta model classes and JPA specifications in this video.
Git Hub URL: github.com/sha...
My Top Playlists:
Spring Boot with Angular : • Spring Boot + Angular
Spring Boot with Docker & Docker Compose : • Spring Boot Docker & D...
Spring Boot with Kubernetes : • Spring Boot Docker Kub...
Spring Boot with AWS : • Spring Boot + AWS
Spring Boot with Azure : • Spring Boot Azure
Spring Data with Redis : • Spring Data with Redis
Spring Boot with Apache Kafka : • Apache kafka
Spring Boot with Resilience4J : • SpringBoot Resilience4j

Пікірлер: 37
@theshivrajofficial8444
@theshivrajofficial8444 Жыл бұрын
Thanks you for showing criteria api in simple manner...
@technotowntechie9732
@technotowntechie9732 Жыл бұрын
You are most welcome
@jaimejr.maralit903
@jaimejr.maralit903 3 жыл бұрын
Hi, would like to ask if can we join multiple tables in Specification? Thanks
@ajaykushwaha6137
@ajaykushwaha6137 2 жыл бұрын
Hey, were you able to find the solution? I am stuck on that.
@cihatgelir2711
@cihatgelir2711 2 жыл бұрын
@@ajaykushwaha6137 Hi bro, I think this example is what u need, Department class: @JoinColumn(name = "company_id", nullable = false) private Company company; and here specification method: public static Specification byCompanyId(Long id) { return (root, query, criteriaBuilder) -> criteriaBuilder.equal(root.get("company").get("id"), id); }
@ahamedimthias5648
@ahamedimthias5648 29 күн бұрын
Good explanation
@technotowntechie9732
@technotowntechie9732 29 күн бұрын
Thanks and welcome
@FatEduardo
@FatEduardo 3 жыл бұрын
Awesome video. Great job, thanks for uploading!
@amitchandra-zx1ch
@amitchandra-zx1ch Жыл бұрын
Awesome explanation
@niladrisekharnath
@niladrisekharnath Жыл бұрын
Great video thanks for the explanation But one question here though we are using Specification we are reducing boiler plate code but please tell me one thing how to make this work for custom field selection (like in sql instead of the select *…, what if we want to, select certainFieldNames…
@technotowntechie9732
@technotowntechie9732 Жыл бұрын
When using Spring Data JPA with JPA Specification, you can achieve custom field selection (similar to SELECT field1, field2 FROM table) by creating a custom projection interface or using DTOs (Data Transfer Objects) to select specific fields from the entity.
@niladrisekharnath
@niladrisekharnath Жыл бұрын
@@technotowntechie9732 okay thanks that is fine but custom dto is okay but what if we don’t know the fields that we would want to select like if it’s dynamic
@prashantpatil-wq1lt
@prashantpatil-wq1lt 6 ай бұрын
Thanks 👌👍
@miladaminzade8219
@miladaminzade8219 3 жыл бұрын
thank you very much for your awesome tutorials.
@ConfidenceGold
@ConfidenceGold 2 жыл бұрын
I have one question, why it's taking ~1 sec to do query, isn't it too long for local machine? Bc u basically have 1 entity and 5 records in DB.
@syedsadiq7093
@syedsadiq7093 2 жыл бұрын
thank you man for this video
@venkatasubbareddy.g2283
@venkatasubbareddy.g2283 3 жыл бұрын
Bro have u maintain any website/blogs on this technology
@technotowntechie9732
@technotowntechie9732 3 жыл бұрын
No, Future will do.
@Devivl
@Devivl Жыл бұрын
Thanks!
@tritruong4409
@tritruong4409 Жыл бұрын
Awesome video
@sadiqc8153
@sadiqc8153 2 жыл бұрын
Thanks bro..very helpful
@mamadgiaishwarya6235
@mamadgiaishwarya6235 2 жыл бұрын
Amazing!
@yogeshchaudhary621
@yogeshchaudhary621 2 жыл бұрын
Thanks man!
@alejandrofernandez1201
@alejandrofernandez1201 2 жыл бұрын
Muy bueno amigo, me re sirvió.
@nhatduongngo6820
@nhatduongngo6820 2 жыл бұрын
thank you so much. It's very usefull ❤
@MrLool32
@MrLool32 3 жыл бұрын
Hey dude, the dependency doesn't work for me. I have added it and rebuilt my project and there are all my classes with _ at the end of the name inside the target folder but when I try to use them my IDE says it can't find it. Do you know why this could happen?
@technotowntechie9732
@technotowntechie9732 3 жыл бұрын
Which IDE are you using?
@MrLool32
@MrLool32 3 жыл бұрын
@@technotowntechie9732 IntelliJ with Maven
@dakshu11
@dakshu11 3 жыл бұрын
Do maven update project :My issue was resolved with that
@edward452
@edward452 2 жыл бұрын
I added jpamodelgen dependency behind spring-boot-starter-web dependency and it worked for me. (before that I added at the end of dependencies).
@normangadenya5149
@normangadenya5149 2 жыл бұрын
Thanks
@yendys74
@yendys74 2 жыл бұрын
dammnnnn
@normangadenya5149
@normangadenya5149 2 жыл бұрын
@@yendys74 😂😂😂😂 u found me 🤣🤣
@compartelo007
@compartelo007 3 жыл бұрын
@15:20 Maybe when a method is called has ... it should return a boolean, if not, the method should have another name ... Thanks
@НикитаЗайцев-н8д
@НикитаЗайцев-н8д Жыл бұрын
why did you guy disable subs. it's frustrating
@bonedoggle
@bonedoggle Жыл бұрын
Can you please turn on subtitles?
@franmesonero9592
@franmesonero9592 2 жыл бұрын
Great video
[Episode 55] Spring Data JPA Specifications
48:33
Bingyang Wei
Рет қаралды 1,6 М.
Spring Data JPA -Criteria Queries - The Full Guide
30:07
Bouali Ali
Рет қаралды 42 М.
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 83 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 45 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 76 МЛН
Spring Data Projections, Example, Specifications // Курс «Разработчик на Spring Framework»
1:55:13
OTUS IT Онлайн - образование
Рет қаралды 1,8 М.
Spring Data JPA: Ultimate Guide to Custom Queries with @Query Annotation
15:09
Spring Tips: Spring Data JDBC
27:36
SpringDeveloper
Рет қаралды 21 М.
Скучнее iPhone еще не было!
10:48
itpedia
Рет қаралды 629 М.
Кому новенький айфон
0:19
Новостной Гусь
Рет қаралды 2,4 МЛН
Breaking Leptop in Every Possible Way! 💻💔" #shorts
0:52
Light Movies
Рет қаралды 2,2 МЛН
Apple-Designer aktualisieren das iPhone-Design 😂
0:13
Abuloris
Рет қаралды 467 М.
Tesla Coil Testing #experiment #shorts
0:29
Light K
Рет қаралды 2,7 МЛН