You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2006/07/25 04:10:39 UTC
svn commit: r425259 -
/incubator/cayenne/examples/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java
Author: aadamchik
Date: Mon Jul 24 19:10:38 2006
New Revision: 425259
URL: http://svn.apache.org/viewvc?rev=425259&view=rev
Log:
updating JPA example to be in sync with the final release of the spec
Modified:
incubator/cayenne/examples/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java
Modified: incubator/cayenne/examples/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/examples/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java?rev=425259&r1=425258&r2=425259&view=diff
==============================================================================
--- incubator/cayenne/examples/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java (original)
+++ incubator/cayenne/examples/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java Mon Jul 24 19:10:38 2006
@@ -20,7 +20,6 @@
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
-import javax.persistence.PersistenceContextType;
import javax.persistence.Query;
import org.apache.cayenne.jpa.example.entity.Department;
@@ -57,7 +56,7 @@
// create JPA EntityManager
this.entityManager = Persistence
.createEntityManagerFactory("HRPersistenceUnit")
- .createEntityManager(PersistenceContextType.EXTENDED);
+ .createEntityManager();
// now that the mapping is loaded, create test DB
schemaHelper.setupDatabase();