Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.98 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"
  6.         transaction-type="RESOURCE_LOCAL">
  7.         <class>it.uniroma3.db.products.Product</class>
  8.         <class>it.uniroma3.db.products.Address</class>
  9.         <class>it.uniroma3.db.products.Customer</class>
  10.         <properties>
  11.             <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
  12.             <property name="javax.persistence.jdbc.user" value="postgres" />
  13.             <property name="javax.persistence.jdbc.password" value="saske" />
  14.             <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/products" />
  15.  
  16.             <!-- Hibernate properties -->
  17.             <property name="hibernate.show_sql" value="true" />
  18.             <property name="hibernate.format_sql" value="true" />
  19.             <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
  20.             <property name="hibernate.hbm2ddl.auto" value="create" />
  21.         </properties>
  22.     </persistence-unit>
  23.     <persistence-unit name="products-unit-test"
  24.         transaction-type="RESOURCE_LOCAL">
  25.         <class>it.uniroma3.db.products.Product</class>
  26.         <properties>
  27.             <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
  28.             <property name="javax.persistence.jdbc.user" value="postgres" />
  29.             <property name="javax.persistence.jdbc.password" value="saske" />
  30.             <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/products" />
  31.  
  32.             <!-- Hibernate properties -->
  33.             <property name="hibernate.show_sql" value="true" />
  34.             <property name="hibernate.format_sql" value="true" />
  35.             <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
  36.             <property name="hibernate.hbm2ddl.auto" value="create" />
  37.         </properties>
  38.     </persistence-unit>
  39. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement