Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.06 KB | None | 0 0
  1. <persistence version="2.1"
  2.   xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.   xsi:schemaLocation="
  4.        http://xmlns.jcp.org/xml/ns/persistence
  5.        http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  6.    <persistence-unit name="primary">
  7.       <!-- If you are running in a production environment, add a managed
  8.         data source, this example data source is just for devleopment and testing! -->
  9.       <!-- The datasource is deployed as WEB-INF/hibernate4-quickstart-ds.xml, you
  10.         can find it in the source at src/main/webapp/WEB-INF/hibernate4-quickstart-ds.xml -->
  11.       <jta-data-source>java:jboss/datasources/Hibernate4QuickstartDS</jta-data-source>
  12.       <properties>
  13.          <!-- Properties for Hibernate -->
  14.          <property name="hibernate.hbm2ddl.auto" value="create-drop" />
  15.          <property name="hibernate.show_sql" value="false" />
  16.          <property name="jboss.as.jpa.scopedname" value="scopedexamplename"/>
  17.       </properties>
  18.    </persistence-unit>
  19. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement