hbm2java generates this output in MyObject.java:
@OneToMany(cascade={}, fetch=FetchType.LAZY, mappedBy="xxx")^M
^M
public Set getMyCollection() {^M
return this.myCollection;^M
}^M
It should generate:
@OneToMany(cascade={}, fetch=FetchType.LAZY, mappedBy="xxx", targetEntity="com.xxx.yyy.ejb.entity.MyOtherObject")
Because `targetEntity' is missing, I get this exception when loading the par:
20:04:29,683 INFO [Ejb3Configuration] found EJB3 Entity bean: com.xxx.yyy.ejb.entity.Property
20:04:29,714 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=xxx.par
org.hibernate.AnnotationException: Collection has neither generic type or OneToMany.targetEntity() defined: com.xxx.yyy.ejb.entity.MyObject.myCollection
at org.hibernate.cfg.annotations.CollectionBinder.getCollectionType(CollectionBinder.java:347)
at org.hibernate.cfg.annotations.CollectionBinder.bind(CollectionBinder.java:304)
|