-->
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: primitive type collection mapped by many to many table
PostPosted: Thu Jul 09, 2009 6:34 am 
Newbie

Joined: Wed May 27, 2009 11:59 am
Posts: 10
Hi, I want to have primitive type collection mapped by a many to many table.
example:

class to map:
Code:
class A
{
   //Properties
   public void setName(String name)...
   public String getName()...

   public void setB(Set<String> bs)...   // HOW TO MAP THIS PROP??
   public Set<String> getB()...
}



when the tables look like:

Code:
A
int a_id
String name

B
int b_id
String name

AB
int fk_a_id
int fk_b_id



Thanks,
Roee


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.