Joined: Fri Oct 14, 2005 7:52 am Posts: 9 Location: delhi
|
Hi I have been using hibernate since last 5 years . The one problem that I have identified when we need to fetch/save object with one-to-many , many-to-many kind of mapping. I am going to start a new application from scratch and need your valuable suggestion on design.
This time I am thinking NOT TO DEFINE any mapping in HBM file for objects and treat all objects individually . For example There are 2 objects Employee & Addresses and one Employee can have multiple addresses . Earlier we use to define one-to-many mapping between these 2 objects .
But in new design , no mapping to define.
Thanks to please let me know the pros & cons of this design .
|
|