-->
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: Probleme with an inner join in hibernate mapping
PostPosted: Mon Sep 04, 2006 5:12 am 
Newbie

Joined: Mon Sep 04, 2006 3:50 am
Posts: 3
Hi,

I would like to append a criteria in an inner join. This inner join is created in hibernate mapping and I need appending a criteria in "hard". This criteria would be test.num.type='005' on the inner join.

***********************************************

<class name="com.ngr.reposys.back.essai.model.essai" table="val" mutable="false" schema="test" >

<composite-id >
<key-property name="idPrefix" column="VLVALR" type="StringAS400UserType" />
<key-property name="idSuffix" column="VLVALS" type="StringAS400UserType" />
</composite-id>

..........

<join table="num" schema="test" optional="false" >
<key not-null="true" >
<column name="NURACI" not-null="true" />
<column name="NUGRE" not-null="true" />
</key>
<property name="isinCode" type="StringAS400UserType" />
</join>
</class>

Thanks !!!
Cyril


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.