[jboss-cvs] JBossAS SVN: r104944 - in projects/ejb-book/trunk/chxx-employeeregistry/src: test/java/org/jboss/ejb3/examples/employeeregistry and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 18 16:13:40 EDT 2010
Author: ALRubinger
Date: 2010-05-18 16:13:40 -0400 (Tue, 18 May 2010)
New Revision: 104944
Modified:
projects/ejb-book/trunk/chxx-employeeregistry/src/main/resources/persistence.xml
projects/ejb-book/trunk/chxx-employeeregistry/src/test/java/org/jboss/ejb3/examples/employeeregistry/EmployeeIntegrationTest.java
Log:
[EJBBOOK-27] Update JPA Schema to 2 and fix comment
Modified: projects/ejb-book/trunk/chxx-employeeregistry/src/main/resources/persistence.xml
===================================================================
--- projects/ejb-book/trunk/chxx-employeeregistry/src/main/resources/persistence.xml 2010-05-18 20:02:48 UTC (rev 104943)
+++ projects/ejb-book/trunk/chxx-employeeregistry/src/main/resources/persistence.xml 2010-05-18 20:13:40 UTC (rev 104944)
@@ -1,9 +1,9 @@
<?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">
+ 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_2_0.xsd"
+ version="2.0">
<persistence-unit name="tempdb">
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>
Modified: projects/ejb-book/trunk/chxx-employeeregistry/src/test/java/org/jboss/ejb3/examples/employeeregistry/EmployeeIntegrationTest.java
===================================================================
--- projects/ejb-book/trunk/chxx-employeeregistry/src/test/java/org/jboss/ejb3/examples/employeeregistry/EmployeeIntegrationTest.java 2010-05-18 20:02:48 UTC (rev 104943)
+++ projects/ejb-book/trunk/chxx-employeeregistry/src/test/java/org/jboss/ejb3/examples/employeeregistry/EmployeeIntegrationTest.java 2010-05-18 20:13:40 UTC (rev 104944)
@@ -169,7 +169,7 @@
@Override
public Void call() throws Exception
{
- // EJB QL String to remove all Employees
+ // JPA QL String to remove all Employees
final EntityManager em = emHook.getEntityManager();
em.createQuery("DELETE FROM " + Employee.class.getSimpleName() + " o").executeUpdate();
return null;
More information about the jboss-cvs-commits
mailing list