• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate's table-hierarchy strategies - What are simple and complex cases?

 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read in
Java Persistence with Hibernate p.211

By default, choose table-per-class-hierarchy only for simple problems. For more complex cases, you should consider the table-per-subclass strategy. But at that point, ask yourself whether it may not be better to remodel inheritance as delegation in the object model.



Now, what is simple and what is complex

Regards,
Darya
[ September 21, 2007: Message edited by: Darya Akbari ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic