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: <join> mapping and outer-join
PostPosted: Tue Sep 26, 2006 10:38 am 
Newbie

Joined: Fri Jun 23, 2006 9:27 am
Posts: 3
Hi,

I used a join type mapping to make a parent-child relation.
Nevertheless, when I take a look to the generated requests, It looks like Hibernate is using outer join to link the two tables. And so, as if it is to make requests on a hierarchie, response time are too long (2s for TOAD's with inner join and 59s with Hibernate's outer join).

Could anyone tell me if it is possible to make Hibernate not to do outer-join ?

Thx for your help !

============================

<class name="ReferenceMere" table="T_MAILLON_REF">
<comment>Reference Mere.</comment>

<composite-id name="id" class="ReferenceMere$Id">
<!-- code de la hierarchie : ici PFDC -->
<key-property name="coarh"/>
<!-- Numero de version -->
<key-property name="noverarh"/>
<!-- Numero de maillon -->
<key-property name="nomln"/>
</composite-id>

<!-- Sous Sous Gamme -->
<join table="T_PEREFILS_REF" >
<key unique="true">
<column name="coarh"/>
<column name="noverarh"/>
<column name="nomlnfis" />
</key>
<many-to-one name="sousSousGamme"
update="false"
not-null="true"
insert="false" unique="true">
<column name="coarh"/>
<column name="noverarh"/>
<column name="nomlnper"/>
</many-to-one>
</join>


</class>


============================


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.