-->
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: Inheritance Generating Large Queries
PostPosted: Wed Sep 14, 2005 11:16 am 
Regular
Regular

Joined: Sun Jan 18, 2004 9:43 am
Posts: 50
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1.6

Mapping documents:



<class
name="erp.dataaccesslayer.hibernate.dataobjects.Fitting"
table="Fittings"
>

<id
name="id"
type="java.lang.String"
column="id"
>
<generator class="assigned" />
</id>

<property
name="name"
type="java.lang.String"
column="name"
not-null="true"
length="50"
/>
</class>

<joined-subclass
name="erp.dataaccesslayer.hibernate.dataobjects.OtherFitting"
table="OtherFittings" extends="erp.dataaccesslayer.hibernate.dataobjects.Fitting"
>
<key column="id"/>

<property
name="desc"
type="java.lang.String"
column="desc"
not-null="true"
length="50"
/>

</joined-subclass>






I have read the post "Inheritance and Left Outer Joins Generating Large Queries".


In that post, Gavin wrote:

And for a query against a concrete subclass, the two strategies both result in a single query with a join across 3 or 4 tables.


How come I stilll get a large query when the query is against one of the concrete subclasses?



Thank you!

_________________
Edmond Hung
Credit Card DNA Security System (Holdings) Ltd.


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.