Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.89 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence version="2.0"
  3.     xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
  5.     <persistence-unit name="products-unit" transaction-type="RESOURCE_LOCAL">
  6.         <class>it.uniroma3.db.products.Product</class>
  7.         <properties>
  8.             <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
  9.             <property name="javax.persistence.jdbc.user" value="user" />
  10.             <property name="javax.persistence.jdbc.password" value="root" />
  11.             <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/products" />
  12.  
  13.         <!-- Hibernate properties -->
  14.             <property name="hibernate.show_sql" value="true" />
  15.             <property name="hibernate.format_sql" value="true" />
  16.             <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
  17.             <property name="hibernate.hbm2ddl.auto" value="create" />
  18.         </properties>
  19.     </persistence-unit>
  20.    
  21.    
  22.    
  23.     <persistence-unit name="products-unit-test" transaction-type="RESOURCE_LOCAL">
  24.         <class>it.uniroma3.db.products.Product</class>
  25.         <properties>
  26.             <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
  27.             <property name="javax.persistence.jdbc.user" value="user" />
  28.             <property name="javax.persistence.jdbc.password" value="root" />
  29.             <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/products" />
  30.  
  31.         <!-- Hibernate properties -->
  32.             <property name="hibernate.show_sql" value="true" />
  33.             <property name="hibernate.format_sql" value="true" />
  34.             <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
  35.             <property name="hibernate.hbm2ddl.auto" value="create" />
  36.         </properties>
  37.     </persistence-unit>
  38. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement