Newsletter |
Hibernate Relationships In Depth
Hibernate » on Jul 22, 2011 { 16 Comments } By Sivateja
Using hibernate, if we want to put relationship between two entities [ objects of two pojo classes ], then in the database tables, there must exist foreign key relationship, we call it as Referential integrity.
The main advantage of putting relation ship between objects is, we can do operation on one object, and the same operation can transfer onto the other object in the database [ remember, object means one row in hibernate terminology ]
While selecting, it is possible to get data from multiple tables at a time if there exits relationship between the tables, nothing but in hibernate relationships between the objects
Using hibernate we can put the following 4 types of relationships
- One-To-One
- Many-To-One
- Many-To-Many
- One-To-Many
Let’s learn all the Hibernate Relations in detail….
- Hibernate One-to-One mapping explanation with complete example
- Hibernate Many- to-One mapping explanation with complete example
- Hibernate Many-to-Many mapping explanation with complete example
- Hibernate One-to-Many mapping explanation with complete example
You Might Also Like
::. About the Author .:: | ||
Comments
16 Responses to “Hibernate Relationships In Depth”
I want reading through and I think this website got some genuinely useful stuff on it! .
very nice materials
yes it is right dude..
very useful information……
good job……
it is very useful site
Hi Sivateja can you plz provide DB tables for all the relationships like one-to-one,many-to-many…?
it is awesome
thank u for giving such a good programs and explanations…
very useful information sir…
Hi ,
I always got enough material as per my expectation even i got deep explanation with proper real life example………………keet it good work and go ahead.
Regards:Chetan:)
Really nice examples
It is very useful website
useful content…Good for beginner level..Please move to advanced level.
Hi
Sivateja ur explation awesome..will u updated hibernate tools
plese mention creation of table syntac
It's very nice explanation sir.👌👍