[jboss-user] [EJB 3.0] - List of enum types is possible?

Ajaleo do-not-reply at jboss.com
Thu Sep 14 10:33:26 EDT 2006


Hi all!

I'd like to know if it's possible to have an entity with a field that is a list of a enumeration type. I've been using entities with enumerated fields but all of theme has a multiplicity of one. 

When I try to deploy I get this error:

  |   Reason: org.hibernate.MappingException: Could not determine type for: java.util.List, for columns: [org.hibernate.mapp
  | ing.Column(usos)]
  | 

My field is

  | @Enumerated(EnumType.STRING)
  | 	private List<UsoAeropuerto> usos;
  | 

This is the UsoAeropuerto class

  | ...
  | public enum UsoAeropuerto {
  | 	DEPORTIVO,
  | 	CIVIL,
  | 	MILITAR
  | }
  | 
  | 

Thanks a lot!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971575#3971575

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971575



More information about the jboss-user mailing list