Tag: relation
Hibernate Relationships In Depth
by  Java4s | 16 Comments
  [ Ask Question ]
Using hibernate, if we want to put relationship between two entities , then in the database tables, there must exist foreign key relationship, we call it as Referential integrity. The main advantage of…
Hibernate One to Many Mapping Delete Query Example
by  Java4s | 6 Comments
  [ Ask Question ]
Let us see the logic for hibernate one to many mapping delete query, Actually every thing is same like Hibernate One-to-Many Mapping Insert but only change is in OurLogic.java file. But mates, ensure you came through these sessions for…
Hibernate Many to Many Mapping Example
by  Java4s | 14 Comments
  [ Ask Question ]
Let us see an example on this many to many relationship in hibernate. Actually here there is no question of unidirectional, only Bi-Directional. Applying many to many relationship between two pojo class objects is nothing but applying one to…