[jboss-cvs] jboss-seam/src/main/org/jboss/seam/interceptors ...
Gavin King
gavin.king at jboss.com
Thu Oct 12 04:32:38 EDT 2006
User: gavin
Date: 06/10/12 04:32:38
Modified: src/main/org/jboss/seam/interceptors
ManagedEntityIdentityInterceptor.java
Log:
pluggable peristence provider strategies
Revision Changes Path
1.8 +2 -2 jboss-seam/src/main/org/jboss/seam/interceptors/ManagedEntityIdentityInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ManagedEntityIdentityInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/ManagedEntityIdentityInterceptor.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- ManagedEntityIdentityInterceptor.java 11 Oct 2006 02:37:42 -0000 1.7
+++ ManagedEntityIdentityInterceptor.java 12 Oct 2006 08:32:38 -0000 1.8
@@ -17,7 +17,7 @@
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Interceptor;
import org.jboss.seam.core.TouchedContexts;
-import org.jboss.seam.util.Persistence;
+import org.jboss.seam.persistence.PersistenceProvider;
import org.jboss.seam.util.Reflections;
/**
@@ -113,7 +113,7 @@
{
EntityManager em = (EntityManager) persistenceContext;
managed = em.contains(value);
- id = managed ? Persistence.getId(value, em) : null;
+ id = managed ? PersistenceProvider.instance().getId(value, em) : null;
}
else
{
More information about the jboss-cvs-commits
mailing list