Added UI (JSF) and JPA to bayesian network entities.
[simdecs.git] / src / conf / persistence.xml
index 6d7420e..8af6f9d 100644 (file)
       <property name="hibernate.hbm2ddl.auto" value="update"/>
     </properties>
   </persistence-unit>
+  <persistence-unit name="simdecsEclipseLinkPU" transaction-type="JTA">
+    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
+    <jta-data-source>pg</jta-data-source>
+    <class>org.ufcspa.simdecs.bn.entity.Answer</class>
+    <class>org.ufcspa.simdecs.bn.entity.BayesianNetwork</class>
+    <class>org.ufcspa.simdecs.bn.entity.Node</class>
+    <class>org.ufcspa.simdecs.bn.entity.Question</class>
+    <exclude-unlisted-classes>true</exclude-unlisted-classes>
+    <properties>
+      <property name="eclipselink.ddl-generation" value="create-tables"/>
+    </properties>
+  </persistence-unit>
 </persistence>