I am using EJB 3 preview 5 with 4.0.1 SP1
When I try to deploy my app which has bi-directional OneToMany case, the deployment fails with the following stack trace.
I have the following annotations defined in my class
@OneToMany(targetEntity="Employees")
@JoinColumn(name="EMPLOYEES.EMP_ID", referencedColumnName="EMP.ID")
public List getEmployeesList()
{
return employeesList;
}
Any pointers ?
thanks
cmpuser
15:10:42,317 INFO [AnnotationConfiguration] Mapping class using metadata: entity.Departments
15:10:42,357 ERROR [AnnotationConfiguration] Could not compile the mapping annot
ations
org.hibernate.AnnotationException: java.util.List collection not yet supported
at org.hibernate.cfg.AnnotationBinder.fillCollection(AnnotationBinder.ja
va:1415)
at org.hibernate.cfg.AnnotationBinder.bindOneToMany(AnnotationBinder.jav
a:1349)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(Annotati
onBinder.java:785)
at org.hibernate.cfg.AnnotationBinder.processElementsOfAClass(Annotation
Binder.java:573)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:43
6)
at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(Annotatio
nConfiguration.java:94)
at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClasses(Annotat
ionConfiguration.java:62)
at org.jboss.ejb3.entity.HibernateSessionFactory.createSessionFactory(Hi
bernateSessionFactory.java:196)
at org.jboss.ejb3.Ejb3Module.createHibernateSessionFactory(Ejb3Module.ja
va:256)
at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:263)
This is not supported by the EJB3 spec. But will be by JBoss EJB3 (in the next release)