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-many value mapping
PostPosted: Fri Sep 29, 2006 7:09 am 
Newbie

Joined: Fri Sep 29, 2006 6:52 am
Posts: 17
I have a class like this:

Code:
public class Foo
{
    public virtual long Id { ... }
    public virtual init Number { ... }
    public virtual List<string> ValueList { ... }
   
    // other properties
}

Now I want to map the unordered ValueList of strings to a many-to-many relation, using Number (not Id!) as the key. Foo should reference many values and a value might be referenced by many Foo's. But the Key must be Number, not Id.

Any ideas, how this can be done?

Tobias


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.