This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Hibernate Mappngs.

 
Ranch Hand
Posts: 337
Scala Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am new to hibernate, I wish to understand when to Unidirectional Mappings and when to use Bidirectional Mappings in Hibernate?
While reading some blogs and books,  I came across the explanation stating "You Use Unidirectional Mapping while You want the domain model to control from one side of the mapping, and Bidirectional Mapping when you want the domain model to control from both sides of the mapping."

But I want to understand, when would I want the domain model to control from one side and when would I want the domain model to control from both sides.?

I request the ranchers to help me understand this in great details.

Regards,
-Pankaj.
 
Pankaj Shet
Ranch Hand
Posts: 337
Scala Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Can anyone please help me out?

Regards,
-Pankaj.
 
    Bookmark Topic Watch Topic
  • New Topic