-->
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: many to one mapping question - discrimintator in many table?
PostPosted: Fri Nov 10, 2006 10:37 am 
Newbie

Joined: Thu Aug 10, 2006 9:43 am
Posts: 7
Location: South West UK
Hi,

I have two tables that I need to map, a case table which has a column called case_type which contains a string code value eg "ABC"

The full details of the code value eg long description is contained in the CODELIST table

On the face of it I could map this with a many to one mapping however the CODELIST table has a primary key made up of two columns

CODEVALUE = case_type on the case table
LISTNAME

The problem is LISTNAME is not stored on the case table

Is there any way to do the equivilent of a many to one but include some kind of where clauses disciminator in the case table mapping file?

Any other approaches to solve this?

Thanks
Richard


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.