Guest User

Untitled

a guest
Jun 30th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.30 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  4.             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
  6.                                 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  7.             version="2.0">
  8.  
  9.     <persistence-unit name="com.helloworld.dto">
  10.         <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
  11.  
  12.         <class>com.helloworld.dto.User</class>
  13.         <class>com.helloworld.dto.Account</class>
  14.  
  15.         <properties>
  16.             <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
  17.             <property name="hibernate.connection.url"          value="jdbc:postgresql://localhost:5432/postgres"/>
  18.             <property name="hibernate.dialect"                 value="org.hibernate.dialect.PostgreSQL10Dialect"/>
  19.             <property name="hibernate.connection.username"     value="postgres"/>
  20.             <property name="hibernate.connection.password"     value="postgres"/>
  21.             <property name="hibernate.show_sql"                value="true"/>
  22.             <property name="format_sql"                        value="true"/>
  23.         </properties>
  24.     </persistence-unit>
  25. </persistence>
Add Comment
Please, Sign In to add comment