users@glassfish.java.net

Re: @ManyToOne in multiple jars with Glassfish/EclipseLink

From: <forums_at_java.net>
Date: Tue, 21 Jun 2011 18:37:23 -0500 (CDT)

Having two persistence.xml defines two persistence units. You can not have
relationships across persistence units. I think you can use following
packaging 

app.ear

lib/

      person.jar  --> Contains entities (no ejbs) you intended to package
in this jar

      dog.jar      --> Contains entities (no ejbs) you intended to
package in this jar

ejb.jar --> contains ejbs that operate over entities defined above and
persistence.xml that refers to above jars


--
[Message sent by forum member 'mm110999']
View Post: http://forums.java.net/node/814658