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.  [ 1 post ] 
Author Message
 Post subject: Possible to use joined inheritance w/ sequential select?
PostPosted: Tue Jun 09, 2009 1:08 pm 
Newbie

Joined: Sat Mar 11, 2006 4:15 pm
Posts: 15
Hey all. First let me say I'm only posting as a last resort; I've spent hours googling, searching the forums, searching through the hibernate source, and methodically trying stuff out in my own project.

So I've got a class hierarchy mapped w/ @Inheritance(strategy=InheritanceType.JOINED) which really does make sense as a hierarchy; one of the main requirements is that I need to be able to query the whole hierarchy and add new concrete classes later without sever modifications to the data model. But when selecting from the top-level class it of course selects from all the tables using one big query, 1000+ columns, and 56 outer joins. Just recently I added a new concrete type to the hierarchy and it pushed Oracle over the column/join limit. Before where it may have been slow it now just fails completely when loading entities. This only happens in the edge cases as we've already optimized the heck out of the application when selecting from the hierarchy in the common cases.

So my question: Is it possible to use JOINED inheritance mapping and use sequential select rather than a massive join?

I have looked into using single-table but the problem is that:
* you have to specify the table name for each column in the concrete class and we have a LOT of colums
* we have mapped superclasses between the top-level class (which has a table) and the concrete tables

I could really use some help on this one.

FYI, I'm using the latest versions of core and annotations and am using only annotations (so far).


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

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.