Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mixing Hibernate Inheritance Mapping Strategies

Vish Shukla
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have this class hierarchy to map in database tables.

ChildL2 extends ChildL1, ChildL1 extends Parent

I need to map Parent and ChildL1 relationship using method of discriminator and ChildL1 and ChildL2 relationship using Table per subclass strategy. Is it possible to do so?

The problem here is <subclass> can't have <joined-subclass> tag inside it.

Please help.. Thanks in advance...
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!