Author: manaRH
Date: 2009-01-29 10:50:57 -0500 (Thu, 29 Jan 2009)
New Revision: 9985
Added:
trunk/examples/jpa/resources-websphere7/META-INF/
trunk/examples/jpa/resources-websphere7/META-INF/persistence.xml
Log:
JBSEAM-3570 - adding new configuration for WAS V7
Added: trunk/examples/jpa/resources-websphere7/META-INF/persistence.xml
===================================================================
--- trunk/examples/jpa/resources-websphere7/META-INF/persistence.xml
(rev 0)
+++ trunk/examples/jpa/resources-websphere7/META-INF/persistence.xml 2009-01-29 15:50:57
UTC (rev 9985)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence
xmlns="http://java.sun.com/xml/ns/persistence"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+ <persistence-unit name="bookingDatabase"
transaction-type="RESOURCE_LOCAL">
+ <provider>org.hibernate.ejb.HibernatePersistence</provider>
+ <jta-data-source>DefaultDatasource</jta-data-source>
+ <properties>
+ <!-- From WAS 6.1.0.9, the embedded DB is switched to the same Derby DB in
GlassFish -->
+ <property name="hibernate.dialect"
value="GlassfishDerbyDialect"/>
+ <property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
+ <property name="hibernate.show_sql" value="true"/>
+ <property name="hibernate.cache.provider_class"
value="org.hibernate.cache.HashtableCacheProvider"/>
+ <property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>
+ </properties>
+ </persistence-unit>
+</persistence>
Property changes on: trunk/examples/jpa/resources-websphere7/META-INF/persistence.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain