-->
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.  [ 2 posts ] 
Author Message
 Post subject: Referencing a joined table column
PostPosted: Wed May 04, 2005 10:22 am 
Newbie

Joined: Wed Apr 20, 2005 5:05 pm
Posts: 12
Hello,
I am trying to reference a joined table via map-key field. The mapping of my map is below. The class PartyPreference uses a simple <join> tag into another table. I would like to reference a column off the join for my map key. Currently im using a formula to suggest the column name. Problem with this is that I am assuming the table alias will remain. In certain situtuations it changes. Is there a standard way of doing this?

Code:
<map name="cmPartyPreferences" inverse="true" fetch="join" table="DM_PartyPreference" >
         <key column="party_id" />
         <map-key formula="cmpartypre0_1_.name" type="java.lang.String" />
         <one-to-many class="PartyPreference" />
</map>


Thanks,
LT


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 04, 2005 1:03 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
do not cross post.

_________________
Emmanuel


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

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.