SHARE
TWEET

Untitled

a guest Sep 11th, 2019 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  3. <persistence-unit name="primary">
  4.   <!-- If you are running in a production environment, add a managed
  5.          data source, this example data source is just for development and testing! --><!-- The datasource is deployed as WEB-INF/progetto-ds.xml, you
  6.          can find it in the source at src/main/webapp/WEB-INF/progetto-ds.xml --><jta-data-source>java:/PostgresDS</jta-data-source>
  7.     <properties>
  8.     <!-- Properties for Hibernate --><property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  9.       <property name="hibernate.show_sql" value="true"/>
  10.       <property name="show_sql" value="true"/>
  11.       <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
  12.       <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
  13.       <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/basedata"/>
  14.       <property name="hibernate.connection.username" value="postgres"/>
  15.       <property name="hibernate.connection.password" value="12345"/>
  16.     </properties>
  17.   </persistence-unit>
  18.   <persistence-unit name="progetto-persistence-unit" transaction-type="JTA">
  19.   <description>Forge Persistence Unit</description>
  20.     <provider>org.hibernate.ejb.HibernatePersistence</provider>
  21.     <jta-data-source>java:/PostgresDS</jta-data-source>
  22.     <exclude-unlisted-classes>false</exclude-unlisted-classes>
  23.     <properties>
  24.     <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  25.       <property name="hibernate.show_sql" value="true"/>
  26.       <property name="hibernate.format_sql" value="true"/>
  27.       <property name="hibernate.transaction.flush_before_completion" value="true"/>
  28.       <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
  29.     </properties>
  30.   </persistence-unit>
  31. </persistence>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top