-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: table-per-class-hierarchy mapping recommended. Why?
PostPosted: Fri Jan 30, 2004 5:33 pm 
Newbie

Joined: Thu Dec 11, 2003 3:27 pm
Posts: 12
I ask because I currently use that strategy when modeling inheritance, but now my company's database people would prefer that I switch to the table-per-subclass mapping strategy (joined-sublcass).

Section 16.2 of the hibernate reference assures me that I'll still get all the polymorphic behavior I want with table-per-subclass, but I figure table-per-class-hierarchy is recommended because of performance issues. And I'd hate to rework the tables of an in-production application just to find out that the performance is unacceptable.


Anyone want to tell me I'm worried over nothing.

-Chuck
.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 7:14 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well, with joined-subclass you of course get a lot of joins and generally more complex SQL queries. The performance hit should be bearable if you don't make heavy use of subclassing and polymorphism. In the end it all depends on your use case.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.