Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
- <persistence-unit name="forge-default" transaction-type="JTA">
- <description>Forge Persistence Unit</description>
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
- <property name="hibernate.show_sql" value="true"/>
- <property name="hibernate.format_sql" value="true"/>
- <property name="hibernate.transaction.flush_before_completion" value="true"/>
- </properties>
- </persistence-unit>
- <persistence-unit name="forge-cache" transaction-type="JTA">
- <description>Forge Persistence Unit</description>
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <jta-data-source>java:jboss/datasources/CacheDS</jta-data-source>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
- <property name="hibernate.show_sql" value="true"/>
- <property name="hibernate.format_sql" value="true"/>
- <property name="hibernate.transaction.flush_before_completion" value="true"/>
- <property name="hibernate.dialect" value="org.hibernate.dialect.Cache71Dialect"/>
- </properties>
- </persistence-unit>
- </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement