|
|
@ -3,19 +3,19 @@
|
|
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
|
|
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
|
|
|
|
version="2.0">
|
|
|
|
version="2.0">
|
|
|
|
|
|
|
|
|
|
|
|
<persistence-unit name="jpa_hospital_example">
|
|
|
|
<persistence-unit name="spring_rest_example">
|
|
|
|
<description>
|
|
|
|
<description>
|
|
|
|
Persistence unit for the Jakarta Persistence of the JPA Hospital Example.
|
|
|
|
Persistence unit for the Jakarta Persistence of the Spring REST Example.
|
|
|
|
</description>
|
|
|
|
</description>
|
|
|
|
|
|
|
|
|
|
|
|
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
|
|
|
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
|
|
|
<class>space.kklochko.jpa_hospital_example.models.Department</class>
|
|
|
|
<class>space.kklochko.spring_rest_example.models.Department</class>
|
|
|
|
<class>space.kklochko.jpa_hospital_example.models.Patient</class>
|
|
|
|
<class>space.kklochko.spring_rest_example.models.Patient</class>
|
|
|
|
<class>space.kklochko.jpa_hospital_example.models.Indicator</class>
|
|
|
|
<class>space.kklochko.spring_rest_example.models.Indicator</class>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<properties>
|
|
|
|
<property name="jakarta.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
|
|
|
<property name="jakarta.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
|
|
|
<property name="jakarta.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/testdb" />
|
|
|
|
<property name="jakarta.persistence.jdbc.url" value="jdbc:postgresql://postgres:5432/testdb" />
|
|
|
|
<property name="jakarta.persistence.jdbc.user" value="user" />
|
|
|
|
<property name="jakarta.persistence.jdbc.user" value="user" />
|
|
|
|
<property name="jakarta.persistence.jdbc.password" value="testpassword" />
|
|
|
|
<property name="jakarta.persistence.jdbc.password" value="testpassword" />
|
|
|
|
|
|
|
|
|
|
|
@ -29,13 +29,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
<persistence-unit name="testing">
|
|
|
|
<persistence-unit name="testing">
|
|
|
|
<description>
|
|
|
|
<description>
|
|
|
|
Test persistence unit for the Jakarta Persistence of the JPA Hospital Example.
|
|
|
|
Test persistence unit for the Jakarta Persistence of the Spring REST Example.
|
|
|
|
</description>
|
|
|
|
</description>
|
|
|
|
|
|
|
|
|
|
|
|
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
|
|
|
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
|
|
|
<class>space.kklochko.jpa_hospital_example.models.Department</class>
|
|
|
|
<class>space.kklochko.spring_rest_example.models.Department</class>
|
|
|
|
<class>space.kklochko.jpa_hospital_example.models.Patient</class>
|
|
|
|
<class>space.kklochko.spring_rest_example.models.Patient</class>
|
|
|
|
<class>space.kklochko.jpa_hospital_example.models.Indicator</class>
|
|
|
|
<class>space.kklochko.spring_rest_example.models.Indicator</class>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<properties>
|
|
|
|
<property name="jakarta.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
|
|
|
<property name="jakarta.persistence.jdbc.driver" value="org.postgresql.Driver" />
|
|
|
|