-->
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: Formula inside Key Mappings
PostPosted: Thu Sep 08, 2005 3:54 am 
Newbie

Joined: Thu Sep 08, 2005 3:45 am
Posts: 4
I'd like to do a join within a <class> mapping to another table with a composite primary key, where one of the columns of the composite key in my mapping should be fixed, i.e. something like the following:

[code]<join table="some_other_table">
<key column="foreign_key_column1" />
<key formula="FIXED_VALUE" />

<property name="..." />
</join>[/code]

I'm working with legacy data, where I cannot change the schema. Unfortunately Key Mappings don't allow a formula attribute. Is there any way around this?

Thanks,
Stefan


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.