[jboss-cvs] JBossAS SVN: r96451 - in branches/Branch_5_x/testsuite: src/main/org/jboss/test/jpa and 7 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 16 20:41:21 EST 2009
Author: bstansberry at jboss.com
Date: 2009-11-16 20:41:20 -0500 (Mon, 16 Nov 2009)
New Revision: 96451
Added:
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTester.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTesterBean.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/Account.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/AccountHolder.java
branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/test/ScopedWithCacheUnitTestCase.java
branches/Branch_5_x/testsuite/src/resources/jpa/classloader/
branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/
branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/application.xml
branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/jboss-app.xml
branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/persistence.xml
Modified:
branches/Branch_5_x/testsuite/imports/sections/jpa.xml
Log:
[JBAS-7434] Single-node test of entity insert w/ @Lob field and non-clustered second level cache that fails w/ JTS
Modified: branches/Branch_5_x/testsuite/imports/sections/jpa.xml
===================================================================
--- branches/Branch_5_x/testsuite/imports/sections/jpa.xml 2009-11-16 20:22:45 UTC (rev 96450)
+++ branches/Branch_5_x/testsuite/imports/sections/jpa.xml 2009-11-17 01:41:20 UTC (rev 96451)
@@ -63,7 +63,26 @@
</fileset>
</jar>
+ <jar jarfile="${build.lib}/jpa-classloader-test.jar">
+ <fileset dir="${build.classes}">
+ <include name="org/jboss/test/jpa/classloader/**/*.class"/>
+ </fileset>
+ <fileset dir="${build.resources}/jpa/classloader">
+ <include name="META-INF/persistence.xml"/>
+ </fileset>
+ </jar>
+ <jar jarfile="${build.lib}/jpa-classloader-test.ear">
+ <fileset dir="${build.lib}">
+ <include name="jpa-classloader-test.jar"/>
+ </fileset>
+ <fileset dir="${build.resources}/jpa/classloader">
+ <include name="META-INF/application.xml"/>
+ <include name="META-INF/jboss-app.xml"/>
+ </fileset>
+ </jar>
+
+
</target>
</project>
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTester.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTester.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTester.java 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.jpa.classloader.ejb;
+
+import org.jboss.test.jpa.classloader.model.Account;
+import org.jboss.test.jpa.classloader.model.AccountHolder;
+
+/**
+ * Comment
+ *
+ * @author Brian Stansberry
+ * @version $Revision: 60233 $
+ */
+public interface EntityTester
+{
+
+ void createAccount(AccountHolder holder, Integer id, Integer openingBalance, String branch);
+
+ Account getAccount(Integer id);
+
+ public abstract void cleanup();
+
+ public abstract void remove(boolean removeEntities);
+
+}
\ No newline at end of file
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTester.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTesterBean.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTesterBean.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTesterBean.java 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,122 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.jpa.classloader.ejb;
+
+import java.util.Iterator;
+import java.util.List;
+
+import javax.annotation.PreDestroy;
+import javax.ejb.Remote;
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.ejb.TransactionAttribute;
+import javax.ejb.TransactionAttributeType;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+import javax.persistence.Query;
+
+import org.jboss.ejb3.annotation.RemoteBinding;
+import org.jboss.logging.Logger;
+import org.jboss.test.jpa.classloader.model.Account;
+import org.jboss.test.jpa.classloader.model.AccountHolder;
+
+/**
+ * Comment
+ *
+ * @author Brian Stansberry
+ * @version $Revision: 60233 $
+ */
+ at Stateful
+ at Remote(EntityTester.class)
+ at RemoteBinding(jndiBinding="EntityTesterBean/remote")
+ at TransactionAttribute(TransactionAttributeType.REQUIRED)
+public class EntityTesterBean implements EntityTester
+{
+ private static final Logger log = Logger.getLogger(EntityTesterBean.class);
+
+ @PersistenceContext
+ private EntityManager manager;
+
+ public EntityTesterBean()
+ {
+ }
+
+ public Account getAccount(Integer id)
+ {
+ return (Account) manager.find(Account.class, id);
+ }
+
+ public void createAccount(AccountHolder holder, Integer id, Integer openingBalance, String branch)
+ {
+ Account account = new Account();
+ account.setId(id);
+ account.setAccountHolder(holder);
+ account.setBalance(openingBalance);
+ account.setBranch(branch);
+ manager.persist(account);
+ log.info("Persisted Account " + id);
+ }
+
+ public void cleanup()
+ {
+ internalCleanup();
+ }
+
+ private void internalCleanup()
+ {
+ if (manager != null)
+ {
+ Query query = manager.createQuery("select account from Account as account");
+ List accts = query.getResultList();
+ if (accts != null)
+ {
+ for (Iterator it = accts.iterator(); it.hasNext();)
+ {
+ try
+ {
+ Account acct = (Account) it.next();
+ log.info("Removing " + acct);
+ manager.remove(acct);
+ }
+ catch (Exception ignored) {}
+ }
+ }
+ }
+ }
+
+ @PreDestroy
+ @Remove
+ public void remove(boolean removeEntities)
+ {
+ if (removeEntities)
+ {
+ try
+ {
+ internalCleanup();
+ }
+ catch (Exception e)
+ {
+ log.error("Caught exception in remove", e);
+ }
+ }
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/ejb/EntityTesterBean.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/Account.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/Account.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/Account.java 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.jpa.classloader.model;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+
+import org.hibernate.annotations.Cache;
+import org.hibernate.annotations.CacheConcurrencyStrategy;
+
+/**
+ * Comment
+ *
+ * @author Brian Stansberry
+ * @version $Revision: 60233 $
+ */
+ at Entity
+ at Cache (usage=CacheConcurrencyStrategy.READ_WRITE)
+public class Account implements Serializable
+{
+
+ private static final long serialVersionUID = 1L;
+
+ private Integer id;
+ private AccountHolder accountHolder;
+ private Integer balance;
+ private String branch;
+
+ @Id
+ public Integer getId()
+ {
+ return id;
+ }
+ public void setId(Integer id)
+ {
+ this.id = id;
+ }
+
+ @Lob
+ public AccountHolder getAccountHolder()
+ {
+ return accountHolder;
+ }
+ public void setAccountHolder(AccountHolder accountHolder)
+ {
+ this.accountHolder = accountHolder;
+ }
+
+ public Integer getBalance()
+ {
+ return balance;
+ }
+ public void setBalance(Integer balance)
+ {
+ this.balance = balance;
+ }
+ public String getBranch()
+ {
+ return branch;
+ }
+ public void setBranch(String branch)
+ {
+ this.branch = branch;
+ }
+
+
+
+
+
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/Account.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/AccountHolder.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/AccountHolder.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/AccountHolder.java 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,93 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.jpa.classloader.model;
+
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.io.Serializable;
+
+/**
+ * Comment
+ *
+ * @author Brian Stansberry
+ * @version $Revision: 60233 $
+ */
+public class AccountHolder implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+
+ private String lastName;
+ private String ssn;
+ private transient boolean deserialized;
+
+ public AccountHolder( ) {}
+
+ public AccountHolder(String lastName, String ssn)
+ {
+ this.lastName = lastName;
+ this.ssn = ssn;
+ }
+
+ public String getLastName( ) { return this.lastName; }
+ public void setLastName(String lastName) { this.lastName = lastName; }
+
+ public String getSsn( ) { return ssn; }
+ public void setSsn(String ssn) { this.ssn = ssn; }
+
+ public boolean equals(Object obj)
+ {
+ if (obj == this) return true;
+ if (!(obj instanceof AccountHolder)) return false;
+ AccountHolder pk = (AccountHolder)obj;
+ if (!lastName.equals(pk.lastName)) return false;
+ if (!ssn.equals(pk.ssn)) return false;
+ return true;
+ }
+
+ public int hashCode( )
+ {
+ int result = 17;
+ result = result * 31 + lastName.hashCode();
+ result = result * 31 + ssn.hashCode();
+ return result;
+ }
+
+ public String toString()
+ {
+ StringBuffer sb = new StringBuffer(getClass().getName());
+ sb.append("[lastName=");
+ sb.append(lastName);
+ sb.append(",ssn=");
+ sb.append(ssn);
+ sb.append(",deserialized=");
+ sb.append(deserialized);
+ sb.append("]");
+ return sb.toString();
+ }
+
+ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
+ {
+ ois.defaultReadObject();
+ deserialized = true;
+ }
+
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/classloader/model/AccountHolder.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/test/ScopedWithCacheUnitTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/test/ScopedWithCacheUnitTestCase.java (rev 0)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/test/ScopedWithCacheUnitTestCase.java 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,116 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.jpa.test;
+
+import java.util.Properties;
+
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.test.JBossTestCase;
+import org.jboss.test.hibernate.test.HibernateIntgUnitTestCase;
+import org.jboss.test.jpa.classloader.ejb.EntityTester;
+import org.jboss.test.jpa.classloader.model.Account;
+import org.jboss.test.jpa.classloader.model.AccountHolder;
+
+/**
+ *
+ * @author Brian Stansberry
+ * @version $Id: EntityUnitTestCase.java 57207 2006-09-26 12:06:13Z dimitris at jboss.org $
+ */
+public class ScopedWithCacheUnitTestCase
+extends JBossTestCase
+{
+ protected org.jboss.logging.Logger log = getLog();
+
+ protected static final AccountHolder SMITH = new AccountHolder("Smith", "1000");
+
+ protected EntityTester sfsb0;
+
+ public ScopedWithCacheUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ /** Setup the test suite.
+ */
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(ScopedWithCacheUnitTestCase.class, "jpa-classloader-test.ear");
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ sfsb0 = getEntityTester(getJndiURL());
+ sfsb0.cleanup();
+ }
+
+ protected EntityTester getEntityTester(String nodeJNDIAddress) throws Exception
+ {
+// Properties prop1 = new Properties();
+// prop1.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
+// prop1.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
+// prop1.put("java.naming.provider.url", "jnp://" + nodeJNDIAddress + ":1099");
+//
+// log.info("===== Naming properties for " + nodeJNDIAddress + ": ");
+// log.info(prop1);
+// log.info("Create InitialContext for " + nodeJNDIAddress);
+ InitialContext ctx1 = getInitialContext();
+
+ log.info("Lookup sfsb from " + nodeJNDIAddress);
+ EntityTester eqt = (EntityTester)ctx1.lookup("EntityTesterBean/remote");
+
+ return eqt;
+ }
+
+ protected void tearDown() throws Exception
+ {
+ if (sfsb0 != null)
+ {
+ try
+ {
+ sfsb0.remove(true);
+ }
+ catch (Exception e) {}
+ }
+
+ sfsb0 = null;
+ }
+
+ public void testSimpleInsert() throws Exception
+ {
+ Integer id = Integer.valueOf(1001);
+ Integer balance = Integer.valueOf(5);
+ sfsb0.createAccount(SMITH, id, balance, "94536");
+ Account acct = sfsb0.getAccount(id);
+ assertNotNull(acct);
+ AccountHolder holder = acct.getAccountHolder();
+ assertNotNull(holder);
+ assertEquals("Smith", holder.getLastName());
+ assertEquals("1000", holder.getSsn());
+ assertEquals(balance, acct.getBalance());
+ assertEquals("94536", acct.getBranch());
+ }
+}
Property changes on: branches/Branch_5_x/testsuite/src/main/org/jboss/test/jpa/test/ScopedWithCacheUnitTestCase.java
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/application.xml
===================================================================
--- branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/application.xml (rev 0)
+++ branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/application.xml 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC
+ "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
+ "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+ <display-name>Clustered entity with scoped classloader test ear</display-name>
+ <module>
+ <ejb>jpa-classloader-test.jar</ejb>
+ </module>
+</application>
Property changes on: branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/application.xml
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/jboss-app.xml
===================================================================
--- branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/jboss-app.xml (rev 0)
+++ branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/jboss-app.xml 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE jboss-app
+ PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd">
+
+<jboss-app>
+ <loader-repository>
+ jboss.test:ear=jpa-classloader-test.ear
+ <!--
+ <loader-repository-config>
+ java2ParentDelegation=false
+ </loader-repository-config>
+ -->
+ </loader-repository>
+</jboss-app>
Property changes on: branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/jboss-app.xml
___________________________________________________________________
Name: svn:keywords
+
Added: branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/persistence.xml
===================================================================
--- branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/persistence.xml (rev 0)
+++ branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/persistence.xml 2009-11-17 01:41:20 UTC (rev 96451)
@@ -0,0 +1,17 @@
+<?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="classloaderdb" transaction-type="JTA">
+ <jta-data-source>java:/DefaultDS</jta-data-source>
+ <properties>
+ <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
+ <!-- Must use "update" here as we do a test of redeployment and don't want to drop the db -->
+ <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+ <property name="hibernate.cache.use_query_cache" value="true"/>
+ <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
+ </properties>
+ </persistence-unit>
+</persistence>
Property changes on: branches/Branch_5_x/testsuite/src/resources/jpa/classloader/META-INF/persistence.xml
___________________________________________________________________
Name: svn:keywords
+
More information about the jboss-cvs-commits
mailing list