This content has been marked as final.
Show 2 replies
-
1. Re: Entities in seperate jar files
waynebaylor Sep 25, 2007 2:52 PM (in response to irajeev)you can deploy each separately or package them both in an EAR and deploy the EAR.
-
2. Re: Entities in seperate jar files
alrubinger Sep 25, 2007 7:44 PM (in response to irajeev)If there's any relationship between the entities in Jar1 and Jar2 (associations, mapped superclasses, etc), you'll have to reference the classes in Jar1's persistence.xml file under the "class" node:
DTD:<!ELEMENT persistence (persistence-unit*)> <!ELEMENT persistence-unit (description?,provider?,jta-datasource?, non-jta-datasource?,(class|jar-file|mapping-file)*, exclude-unlisted-classes?,properties?)> <!ATTLIST persistence-unit name CDATA #REQUIRED> <!ATTLIST persistence-unit transaction-type (JTA|RESOURCE_LOCAL) "JTA"> <!ELEMENT description (#PCDATA)> <!ELEMENT provider (#PCDATA)> <!ELEMENT jta-datasource (#PCDATA)> <!ELEMENT non-jta-datasource (#PCDATA)> <!ELEMENT mapping-file (#PCDATA)> <!ELEMENT jar-file (#PCDATA)> <!ELEMENT class (#PCDATA)> <!ELEMENT exclude-unlisted-classes EMPTY> <!ELEMENT properties (property*)> <!ELEMENT property EMPTY> <!ATTLIST property name CDATA #REQUIRED> <!ATTLIST property value CDATA #REQUIRED>