Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Hi All,
I have been struggling with a mapping in hibernate. the problem is as follows -
Class Parent {
Set<ChildA> childAlist;
Set<ChildB> childBlist;
Set<ChildC> childClist;
}
ChildA ,B and C are all derived from the class Child.
I want to have a strictly unidirectional one-to-many from Parent to each of the Child types.
In the data model, the all properties are stored in the table of child.
What should be the mapping files for parent and child.
Please help asap as I am stuck for a couple of days now.
Best
Samik