Hibernate Tutorial 10 - Saving Collections

preview_player
Показать описание
We'll now learn how to save value types that are collection objects.
Рекомендации по теме
Комментарии
Автор

u r best teacher i have ever met. i have learnt spring and hibernate from you. I appreciate your effort.

minpandey
Автор

Mantra getting from GURU of this time. Kaushik Sir you have flattened with you tutorials. Die Hard Fan of your tutorials.

MegaSam
Автор

Excellant Quite concise and quick way to start off with hibernate with confidence.
Thanks a ton Kaushik.Great service to java community

Towardstommorrow
Автор

Thank you so much for these tutorials! You are a great teacher and have made learning hibernate much easier for me.

christopherhenkel
Автор

Hi Kaushik, just wanna say thank you for all your efforts it's highly appreciated., 😊

sudeepghosh
Автор

Save me a lot of time for learning Hibernate...
Thank you very very .. much!

ybarrettful
Автор

continue on your work so that peoples like me tell to youger generations about you for becoming a skilled programmer

DeepakJagathy
Автор

Its amazing and very useful sessions.. Thank you Koushik

babuchokka
Автор

I have a question. Instead of declaring the listOfAddresses as set, can I declare it as ArrayList?

liew
Автор

Thankyou for your great work. Its very helpfull. 

I have one request. If you share the note it will be much easier while revising . Thankyou once again

rajesh
Автор

Hi Kaushik,

What is the difference between sorted and ordered collection in hibernate?

manishasingh
Автор

excellent one, thanks. One recommendation though, can you built playlists by subject?For instance, one list for hibernate, another for spring.So once we start playing we can play another starting automatically.

InnerChildExplorer
Автор

@MrSwaroop67 I can't give you any good answers I'm afraid, but you might want to try using some 1.6 version of the JDK. I think there are still some compatibility issues with 1.7 (although I don't know if this is the case for Hibernate)

Marxama
Автор

for setting the Address, why not setListOfAddresses() is used ? can you please explain.

pavan
Автор

Hi Koushik and everyone else, By the end of this lecture, we've embedded many addresses in the User Entity, The table structure was table for the User (Entity class), and a table for the Address (value class), this table also got a column with the userId value from the User table to function as a Foreign Key (in the Address table).Essentially the relationship we have is OneToMany, that is, one user can hvae many addresses, but an address can only have 1 userMy questions is, is it possible to have ManyToMany relationship? that is, one user have many addresses and one address can have many users (Keeping in mind that Address is of value type and User is of Entity type)??Thanks..

avire.
Автор

Great tutorial,
Just one doubt, what if there are 2 user objects and 2 address objects,
Will there be 4 records in the UserAddresses table, 2 address for each user objects ?

mayurd
Автор

what is the difference between @ElementCollection & @OneToMany. Since both works on the one-to-many relationship

puneetsaneja
Автор

Hi Java Brains, Do you have any website where i can find all these things written..?

AmazingVWorld
Автор

In a table if i would like to have a primary ID and a foreign Id how can i achive it ??

pavanyalamanchili
Автор

When did "= new HashSet();" change to "= new HashSet<Address>();" and why? I noticed it in 11th tutorial when taking notes.I don't even understand the syntax, why it is in pointy brackets and the parentheses are empty?

clemopcl