[jboss-user] [EJB 3.0] - Re: How to map an array or a list of enums?
grettke_spdr
do-not-reply at jboss.com
Tue Jun 12 11:33:02 EDT 2007
"waynebaylor" wrote : I'm not sure, but I've only seen persistent Collections being used with Hibernate--not arrays.
|
| Have you tried using a List<UnderwritingConcernEnum> or Set<UnderwritingConcernEnum> instead of an array?
I get
| javax.persistence.PersistenceException: org.hibernate.MappingException: Could no
| t determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(
| concerns)]
|
When I try a set or a list. It seems like it expects me to use a @OneToMany and specity the targetEntity type here, but I don't want to unless I must.
I was hoping I could get away with enums for specifying options.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053621#4053621
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053621
More information about the jboss-user
mailing list