[seam-commits] Seam SVN: r11788 - in modules/remoting/trunk/examples/model/src/main: resources and 2 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Dec 7 10:51:11 EST 2009
Author: shane.bryzak at jboss.com
Date: 2009-12-07 10:51:10 -0500 (Mon, 07 Dec 2009)
New Revision: 11788
Added:
modules/remoting/trunk/examples/model/src/main/resources/
modules/remoting/trunk/examples/model/src/main/resources/META-INF/
modules/remoting/trunk/examples/model/src/main/resources/META-INF/import.sql
modules/remoting/trunk/examples/model/src/main/resources/META-INF/persistence.xml
modules/remoting/trunk/examples/model/src/main/resources/META-INF/seam-model-ds.xml
Removed:
modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/import.sql
modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/persistence.xml
modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/seam-model-ds.xml
Log:
move persistence config to correct location
Added: modules/remoting/trunk/examples/model/src/main/resources/META-INF/import.sql
===================================================================
--- modules/remoting/trunk/examples/model/src/main/resources/META-INF/import.sql (rev 0)
+++ modules/remoting/trunk/examples/model/src/main/resources/META-INF/import.sql 2009-12-07 15:51:10 UTC (rev 11788)
@@ -0,0 +1,3 @@
+insert into customer (customerid, firstname, lastname, dateofbirth, gender) values (1, 'Shane', 'Bryzak', '19010101', 1);
+
+
Added: modules/remoting/trunk/examples/model/src/main/resources/META-INF/persistence.xml
===================================================================
--- modules/remoting/trunk/examples/model/src/main/resources/META-INF/persistence.xml (rev 0)
+++ modules/remoting/trunk/examples/model/src/main/resources/META-INF/persistence.xml 2009-12-07 15:51:10 UTC (rev 11788)
@@ -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="model">
+ <provider>org.hibernate.ejb.HibernatePersistence</provider>
+ <jta-data-source>modelDatasource</jta-data-source>
+ <properties>
+ <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+ <property name="hibernate.show_sql" value="true"/>
+ <!-- These are the default for JBoss EJB 3, but not for Hibernate EntityManager -->
+ <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
+ <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
+ </properties>
+ </persistence-unit>
+</persistence>
Added: modules/remoting/trunk/examples/model/src/main/resources/META-INF/seam-model-ds.xml
===================================================================
--- modules/remoting/trunk/examples/model/src/main/resources/META-INF/seam-model-ds.xml (rev 0)
+++ modules/remoting/trunk/examples/model/src/main/resources/META-INF/seam-model-ds.xml 2009-12-07 15:51:10 UTC (rev 11788)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE datasources
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
+<datasources>
+
+ <local-tx-datasource>
+ <jndi-name>modelDatasource</jndi-name>
+ <use-java-context>false</use-java-context>
+ <connection-url>jdbc:hsqldb:.</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <user-name>sa</user-name>
+ <password></password>
+ </local-tx-datasource>
+
+</datasources>
Deleted: modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/import.sql
===================================================================
--- modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/import.sql 2009-12-07 15:30:54 UTC (rev 11787)
+++ modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/import.sql 2009-12-07 15:51:10 UTC (rev 11788)
@@ -1,3 +0,0 @@
-insert into customer (customerid, firstname, lastname, dateofbirth, gender) values (1, 'Shane', 'Bryzak', '19010101', 1);
-
-
Deleted: modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/persistence.xml
===================================================================
--- modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/persistence.xml 2009-12-07 15:30:54 UTC (rev 11787)
+++ modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/persistence.xml 2009-12-07 15:51:10 UTC (rev 11788)
@@ -1,17 +0,0 @@
-<?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="model">
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <jta-data-source>modelDatasource</jta-data-source>
- <properties>
- <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
- <property name="hibernate.show_sql" value="true"/>
- <!-- These are the default for JBoss EJB 3, but not for Hibernate EntityManager -->
- <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
- <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
- </properties>
- </persistence-unit>
-</persistence>
Deleted: modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/seam-model-ds.xml
===================================================================
--- modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/seam-model-ds.xml 2009-12-07 15:30:54 UTC (rev 11787)
+++ modules/remoting/trunk/examples/model/src/main/webapp/WEB-INF/seam-model-ds.xml 2009-12-07 15:51:10 UTC (rev 11788)
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE datasources
- PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
-<datasources>
-
- <local-tx-datasource>
- <jndi-name>modelDatasource</jndi-name>
- <use-java-context>false</use-java-context>
- <connection-url>jdbc:hsqldb:.</connection-url>
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <user-name>sa</user-name>
- <password></password>
- </local-tx-datasource>
-
-</datasources>
More information about the seam-commits
mailing list