-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersistence.xml
22 lines (21 loc) · 900 Bytes
/
persistence.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="JpaHibernateWithPostgre" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<class>com.github.aravinu19.dryRunner.Customer</class>
<properties>
<property name="javax.persistence.jdbc.driver"
value="org.postgresql.Driver"/>
<property name="javax.persistence.jdbc.url"
value="jdbc:postgresql://localhost:5432/test4"/>
<property name="javax.persistence.jdbc.user"
value="postgres"/>
<property name="javax.persistence.jdbc.password"
value="root"/>
</properties>
</persistence-unit>
</persistence>