Update the persistence configuration.

main
KKlochko 1 year ago
parent 22e1506024
commit 05528396ac

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

Loading…
Cancel
Save