Hello all. I've a problem. I'm using Hibernate3, JBoss 4.0.1 (CVS) with EJB3 support.
My problem is next: when I'm trying to deploy EntityBean, contains List as Field I'm getting this Error:
ERROR [Ejb3Module] Starting failed jboss.j2ee:service=EJB3,module=SimpleEntityBean.jar.ejb3
org.hibernate.MappingException: Could not determine type for: java.util.List, for columns: [org.hibernate.mapping.Column(list)]
here is a part of my bean...
@Entity
@Inheritance( discriminatorType=DiscriminatorType.INTEGER, discriminatorValue="1" )
@DiscriminatorColumn( name="discriminator" )
public class SimpleEntityBean
{
private List m_list;
public List getList()
{
return m_list;
}
public void setList( List list)
{
m_list = list;
}
}
How to correct this? I've read that current spec of EJB3 doesn't contain support for java.util.List, but I need this support... :(
Or could you tell me how to implement this support in current EJB3.0 Release?
|