|
@@ -4,7 +4,7 @@
|
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
|
|
<persistence-unit name="persistenceUnit"
|
|
<persistence-unit name="persistenceUnit"
|
|
|
transaction-type="RESOURCE_LOCAL">
|
|
transaction-type="RESOURCE_LOCAL">
|
|
|
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
|
|
|
|
|
|
|
+ <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
|
|
<properties>
|
|
<properties>
|
|
|
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider" />
|
|
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider" />
|
|
|
<property name="hibernate.cache.use_second_level_cache"
|
|
<property name="hibernate.cache.use_second_level_cache"
|
|
@@ -27,6 +27,7 @@
|
|
|
<!-- <property name="hibernate.ejb.resource_scanner" value="org.hibernate.ejb.packaging.NativeScanner" /> -->
|
|
<!-- <property name="hibernate.ejb.resource_scanner" value="org.hibernate.ejb.packaging.NativeScanner" /> -->
|
|
|
<!-- <property name="hibernate.transaction.jta.platform"
|
|
<!-- <property name="hibernate.transaction.jta.platform"
|
|
|
value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> -->
|
|
value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" /> -->
|
|
|
|
|
+ <property name="jboss.as.jpa.managed" value="false" />
|
|
|
</properties>
|
|
</properties>
|
|
|
</persistence-unit>
|
|
</persistence-unit>
|
|
|
</persistence>
|
|
</persistence>
|