posted 13 years ago
i have tried the same thing with hibernate!
Here i will take an example of Employee object.
An Employee can be associated with multiple departments.
So now our Employee can have a collection of Dept objects.
So now i can map this Dept Collection in Hibernate using <one-to-many> tag specified in Employees.hbm.xml
Where, for Dept i will have seperate Dept.hbm.xml describing Dept object properties.
If you want i can share the code with you!
Prathamesh M.B.<br />Java....only.....