One in very few channels on RUclips who provide good industry level knowledge in technology after learning from here one can easily work in industry level projects
Very explained !! But what I have observed is even though I have updated primary key from one column to composite key with 2 columns in DB it is working fine in spring boot application without changing entity class. Entity class is still using old PK as @Id.
Much needed tutorial since old hibernate wasn't able to support composite key Now it supports. Hi sir need to store spatial and JSON data from hibernate. Can you please make a tutorial. And cucumber tutorial with spring Boot.
HahCode and equals method will used internally for equality of entities. If two entities with same hashCode and equals are inserted then hibernate will allow only one using equals and hashCode.
You gotta be really careful with Lombok there. @Data already includes @EqualsAndHashCode. Hence using @Data on Employee entity will lead to inclusion of all the Employee fields in its equals and hashcode methods, which I don't quite think will be correct.🙄
You are the only one great teacher on RUclips who gives proper explanation with example thanks
Thanks buddy
One in very few channels on RUclips who provide good industry level knowledge in technology after learning from here one can easily work in industry level projects
Thanks buddy keep learning 😃
Super nice ❤. Short and crispy. No too much talking but on the point.
Excellent Sir I have learn lots concept your video and also implement my project. Thank You Sir
Thanks, Java Techie.
got a clear picture in a short time.
Hohh god was stuck at this from days
Thank you !! It's solve may problem in fews days. I am using @IdClass, before I used @EmbeddedId and it make me headaches.
Great jobs Brother !!
Good explanation
Very explained !! But what I have observed is even though I have updated primary key from one column to composite key with 2 columns in DB it is working fine in spring boot application without changing entity class. Entity class is still using old PK as @Id.
Yes it will allow as we haven't created constraints in db
Thanks a lot. You saved my day!
Very nice sir
Thank you. nice. could you please make a video on one to one, many to one, many to many, and all CASCADE types with examples.
Hi Deepak it's already there please cross verify once
Thanks Bro. You ate awesome..keep it up..God Bless You..😊
Nice video sir
Nice. It will be helpful if you create another video which explains Composite key with one to many relationship between parent and child tables.
Okay I will
Helpful thanks men
You are excellent
Good stuff .. keep on update..
Thank You.. Do you have any video on shared primary key for springboot jpa?
Please check my association mapping videos
is it possible to get findby one pair , nd delete and update operation possible?
As we know there should be one primary key in table, if one using composite primary key(@EmbeddedId) can i use @Id also
wht if i hava 2 tabled emp and user, and composite empid+userid
Is it possible for auto entity generation based on sql schema instead of manual creation?? Like Asp.net Entity Framework?
Virij in mybatis there is an option but am not much aware about this
@@Javatechie can we try? That is much better .
Very nice
Much needed tutorial since old hibernate wasn't able to support composite key
Now it supports.
Hi sir need to store spatial and JSON data from hibernate.
Can you please make a tutorial.
And cucumber tutorial with spring Boot.
Cucumber tutorial is already uploaded please search in javatechie
can you please make video on how to use Employee and Department as @OnetoMany relationship with composite key that will help us more.
You can checkout my one to many video using jpa
Nice, thanks!!!
Hai bro great explanation can you also explain why we need to override the equals nd hashcode method of compositeId class ?
HahCode and equals method will used internally for equality of entities. If two entities with same hashCode and equals are inserted then hibernate will allow only one using equals and hashCode.
how will findByID or deleteById work in this case??
Even though we declared composite key still we have 1 pk right? Using that we can play
Hi. Which approach is preferable. @Idclass or @embeddable ?
Embedded
Can you do the playlist on java 8 features
ankur bhaiya ke ads still annoy the same.
Brother as I mentioned earlier to you.add decided by RUclips algorithm. I don't have any option to choose add by myself 😜
how can we use @generatedvalue for employeeId?
It won't work for no SQL you need to create custom approach please check already I explained how you can do same using mongo DB
sir i actually do not understand the need of composite key. Cant it get solved with table normalization. Where is the real usecase still confuse
You gotta be really careful with Lombok there. @Data already includes @EqualsAndHashCode. Hence using @Data on Employee entity will lead to inclusion of all the Employee fields in its equals and hashcode methods, which I don't quite think will be correct.🙄
Agreed 👍
How to update with composite key?
Please make one to one, one to many, many to many using composite primary key in jpa
Okay Many to Many I will try
How to use findById() here where i want to particularly search by one of the Pkey where it can return list of entities associated with that id.
No you should search with composite key
@@Javatechie Then should i go for custom query?? If i want to search by specific pKey
in those we have to go by @idClass approach@@krishnasaic
Thank You So Much! I tried it with @Embeddable and @EmbeddableId but didn't work, maybe you know why?. By the way: little donation next month ✌
Nice video sir