-->
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: Write an extension that limit polymorphism
PostPosted: Wed May 21, 2008 4:47 pm 
Beginner
Beginner

Joined: Mon Apr 07, 2008 12:49 pm
Posts: 33
Hey,

Assume you have the following mapping:
AAA - > BBB
6 classes extend from BBB
AAAEtend from AAA (The only BBB implementation that relevant for AAAExtend are BBB1,BBB2)

When you ask for AAAExtend you will get a big query that have 6 left-outer join (in case of join inheritance) and a lot of columns in the select (The columns of BBB3…BBB6 , which are not relevant).

I think on write some extension to hibernate that can restrict the type of the reference and will not generate query with all the columns in the hierarchy.

What do you think?


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.