[JBoss-user] [EJB 3.0] - Re: EJB3 Inheritance complains about a parent's collection
Tried upgrading from EJB3 RC5 to RC6, but it has the same results (all under JBoss 4.0.4-CR2). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941002#3941002 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941002 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: EJB3 Inheritance complains about a parent's collection
Found the problem. It was a scope problem. Fail is in a different package and jar file from TrackedItem and UserDatum. I need to include jar-filetracker.jar/jar-file in the persistence.xml file for Fail. That cleared up the problem by allowing Fail to see TrackedItem and UserDatum in the tracker.jar file. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941090#3941090 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941090 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - EJB3 Inheritance complains about a parent's collection
Hello All, Ran into a strange problem (not really sure what is wrong) when I tried to extend a working Entity Bean. The extended Entity Bean complains about a collection in its parent class. Here is the error message: | org.hibernate.AnnotationException: Collection of elements must not have mappedBy or association reference an unmapped entity: TrackedItem.userData Here is TrackedItem: @Entity | @Inheritance(strategy=InheritanceType.JOINED) | @DiscriminatorValue(value = I) | public class TrackedItem implements Serializable | { | | @OneToMany(mappedBy=item, cascade = {CascadeType.ALL}) | @MapKey(name=key) | private MapString, UserDatum userData; | } Here is UserDatum: @Entity | public class UserDatum implements Serializable { | ... | private String key; | @ManyToOne | private TrackedItem item; | } | Here is Fail which extends TrackedItem: @Entity | @DiscriminatorValue(value = S) | public class Fail extends TrackedItem { | | } Fail doesn't contain any collections or references to userData or UserDatum. When I deploy TrackedItem and UserDatum everything deploys cleanly, works fine and my unit tests pass. When deploy Fail, I get the error message above as the reason the deployment failed. Any help is appreciated! Sincerely, Stephen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3940749#3940749 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940749 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user