-->
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.  [ 3 posts ] 
Author Message
 Post subject: how to map value collections(not entity)?
PostPosted: Tue Jan 24, 2006 9:45 pm 
Senior
Senior

Joined: Tue Sep 13, 2005 2:01 am
Posts: 137
Class Paper {


public List<String> getColors();

}

Paper has a list of possible colors. Color is a string. I know how to map entity using @OneToMany, but color is not an entity.

Thanks for help.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 3:00 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
READ THE DOCUMENTATION
What's why I have been written it.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 25, 2006 3:12 pm 
Newbie

Joined: Sat Jan 07, 2006 10:33 am
Posts: 18
Location: New York NY
I believe you are supposed to use @CollectionOfElements in this case.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.