[jboss-cvs] JBossAS SVN: r103492 - in projects/snowdrop/examples/trunk/sportsclub: sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate and 4 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 2 22:53:43 EDT 2010
Author: marius.bogoevici
Date: 2010-04-02 22:53:43 -0400 (Fri, 02 Apr 2010)
New Revision: 103492
Added:
projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/META-INF/
projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/META-INF/persistence.xml
Removed:
projects/snowdrop/examples/trunk/sportsclub/sportsclub-hibernate-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/hibernate/initializer/
projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/java/org/jboss/snowdrop/samples/sportsclub/dao/jpa/initializer/
projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/src/main/application/META-INF/persistence.xml
Modified:
projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Modules.xml
projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/dao-context.xml
Log:
moved persistence.xml
Modified: projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Modules.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Modules.xml 2010-04-02 23:35:31 UTC (rev 103491)
+++ projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Modules.xml 2010-04-03 02:53:43 UTC (rev 103492)
@@ -185,9 +185,8 @@
for example an EntityManager instead of the SessionFactory, the JPA
Persistence Unit (and subsequent EntityManager) are created by the
application server and not created by Spring (the EntityManager is
- injected by Spring, but acquired from JNDI). In fact, the JPA
- PersistenceUnit is deployed separately, at the EAR level - as you will
- see next.</para>
+ injected by Spring, but acquired from JNDI). The persistence unit is
+ deployed from within </para>
<para>The Spring application context configuration fragments are very
similar to the ones encountered in the Hibernate module:</para>
@@ -286,7 +285,7 @@
<para>The Spring-based service layer exposes a number of service beans
that can be consumed by the UI. The service beans are injected with the
- beans defined in the persistence layer. </para>
+ beans defined in the persistence layer.</para>
</section>
<section>
Copied: projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/META-INF/persistence.xml (from rev 103467, projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/src/main/application/META-INF/persistence.xml)
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/META-INF/persistence.xml (rev 0)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/META-INF/persistence.xml 2010-04-03 02:53:43 UTC (rev 103492)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
+ <persistence-unit name="sportsclubPU" transaction-type="JTA">
+ <jta-data-source>java:/SportsClubDS</jta-data-source>
+ <jar-file>sportsclub-domain.jar</jar-file>
+ <properties>
+ <property name="jboss.entity.manager.jndi.name" value="java:/sportsclub/em"/>
+ </properties>
+ </persistence-unit>
+</persistence>
\ No newline at end of file
Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/dao-context.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/dao-context.xml 2010-04-02 23:35:31 UTC (rev 103491)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-dao/src/main/resources/dao-context.xml 2010-04-03 02:53:43 UTC (rev 103492)
@@ -24,5 +24,4 @@
<bean id="invoiceRepository" class="org.jboss.snowdrop.samples.sportsclub.dao.jpa.JpaInvoiceRepository"/>
- <bean id="databaseInitializer" class="org.jboss.snowdrop.samples.sportsclub.dao.jpa.initializer.DatabaseInitializer"/>
</beans>
\ No newline at end of file
Deleted: projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/src/main/application/META-INF/persistence.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/src/main/application/META-INF/persistence.xml 2010-04-02 23:35:31 UTC (rev 103491)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/src/main/application/META-INF/persistence.xml 2010-04-03 02:53:43 UTC (rev 103492)
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
- <persistence-unit name="sportsclubPU" transaction-type="JTA">
- <jta-data-source>java:/SportsClubDS</jta-data-source>
- <jar-file>lib/sportsclub-domain.jar</jar-file>
- <properties>
- <property name="jboss.entity.manager.jndi.name" value="java:/sportsclub/em"/>
- <property name="hibernate.hbm2ddl.auto" value="create" />
- </properties>
- </persistence-unit>
-</persistence>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list