Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
join 2 table between 2 persistance unit


XML
 <persistence-unit name="oltpJPA">
        <class>entity.timetable</class>
        		<class>entity.facultyleave</class> 
        		<properties>
        			<property name="openjpa.jdbc.Schema" value="OLTP" />
        			<property name="openjpa.ConnectionDriverName"value="com.ibm.db2.jcc.DB2Driver"/>
        			<property name="openjpa.ConnectionURL" value="jdbc:db2://172.16.1.7:50000/OLTPDB:retrieveMessagesFromServerOnGetMessage=true;"/>
        			<property name="openjpa.ConnectionUserName" value="administrator"/>
        			<property name="openjpa.ConnectionPassword" value="server"/>
        		</properties>
        
        
        	</persistence-unit>
        	
        <persistence-unit name="oltpJPAabs">
        	
        	<class>property.Properties</class>
        		
        		<class>entity.StudentAbsenteseDate</class>
        		<class>entity.StudentAbsenteseLecture</class>
        	<properties>
        			<property name="openjpa.jdbc.Schema" value="OLTP" />
        			<property name="openjpa.ConnectionDriverName" value="com.ibm.db2.jcc.DB2Driver"/>
        			<property name="openjpa.ConnectionURL" value="jdbc:db2://172.16.1.9:50000/OLTPDB:retrieveMessagesFromServerOnGetMessage=true;"/>
        			<property name="openjpa.ConnectionUserName" value="administrator"/>
        			<property name="openjpa.ConnectionPassword" value="lenovo"/>
        		</properties>
        	</persistence-unit></persistence>

not able to manage the foreign key between **studentabsenteselecture and timetable**
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900