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: Mapping Question
PostPosted: Fri Feb 25, 2005 7:10 am 
Newbie

Joined: Fri Feb 25, 2005 7:01 am
Posts: 1
I 'm stick to use a legacy database whose schema I cannot modify.

First, there is a Message table that uses a compound key (idMessage, idLang) . It centralizes I18n messages


Most other tables reference the Message Key and have an idMessage column.

I would like to have a one-to-many mapping from each entity to the Message entity. Unfornutalely, there seems to be no goog way to achieve this.

Any help would be greatly appreciated...

_________________
Nicolas Jouve


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 8:19 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Guess the Filtering Data feature of Hibernate 3 is something for you. Check the docs Chapter 17. Filtering data.

HTH
Ernst


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.