-->
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.  [ 6 posts ] 
Author Message
 Post subject: Annotated mapping basic collections.
PostPosted: Tue May 24, 2005 8:56 am 
Newbie

Joined: Tue May 24, 2005 8:51 am
Posts: 2
How to map such a simple property:

private Set<String> lista;

public Set<String> getLista() {
...
}
...

I couldn't find any trace how to do it on annotations documentation. :/
@OneToMany doesn't work. (I get exception claiming "Association references unmapped class: java.lang.String").

Regards,
a.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 01, 2005 11:22 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You can't right now.
Note that this model does not occurs often in production environments.

Vote for it on JIRA (there is a issue on that subject already).

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 5:57 am 
Newbie

Joined: Mon Jun 06, 2005 5:54 am
Posts: 1
Darn. You'd think all the basic features in Hibernate mappings would have the equivalent in annotations just in case they're necessary. Thank you Emannuel for the information though.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 6:08 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This one wasn't necessary enough for someone to contribute.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 2:49 pm 
Beginner
Beginner

Joined: Mon Aug 02, 2004 1:08 pm
Posts: 42
emmanuel wrote:
You can't right now.
Note that this model does not occurs often in production environments.

Vote for it on JIRA (there is a issue on that subject already).


Would you note issue number?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 4:55 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
HBX-109

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.