Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
In my model we have 4 Set<Integer> and we want this list to be populated according to some specific type. I know it is possible if i define the targetEntity in onetomany mapping but in that case i have create Four extra class. I just want to avoid creating these four extra classes. Is there sone solution so that i can define some kind discriminator at onetomany annotation and it populates the correct set depanding upon the discriminator value. Please help.....
Manoj