getting "Associations marked as mappedBy must not define database mappings like @JoinTable or @JoinColumn" in JBoss EPP 5.1
Issue
-
moving to EPP 5.1 from 4.3.0. An Hibernate/DAO EJB jar that deploys fine and runs on 4.3 is not deploying on 5.1:
2011-03-01 15:45:21,769 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=db-ams-ejb-1.0.1.jar/\#db-ams state=Create org.hibernate.AnnotationException: Associations marked as mappedBy must not define database mappings like @JoinTable or @JoinColumn: us.tx.state.oag.ams.domain.InfoMessage.infoAddresses
Also found this under the 5.1 release notes:
https://issues.jboss.org/browse/JBPAPP-2082
But there doesn't seem to be a resolution. Is this a show stopper? Is there something I can change in the domain/dao class to clear the error?
Environment
-
JBoss Enterprise Portal Platform (EPP) 5.1
-
JBoss Enterprise Application Platform (EAP) 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.