users@glassfish.java.net

Re: JPA and multiple entities jar

From: <glassfish_at_javadesktop.org>
Date: Thu, 10 May 2007 16:31:37 PDT

Hi Sergio,

have you tried putting persistence.xml into the META-INF directory of the ear file and reference your two entity jars by

<jar-file>lib/base-entities.jar</jar-file>
<jar-file>lib/other-entities.jar</jar-file>

from within the persistence.xml. Do not include a persistence.xml in entity jars in this case. Please also see the JPA spec, 6.2 Persistence Unit Packaging for more information.

-- markus.
[Message sent by forum member 'mf125085' (mf125085)]

http://forums.java.net/jive/thread.jspa?messageID=216409