User: simone
Date: 00/12/27 10:33:42
Modified: src/main/org/jboss/ejb/plugins BMPPersistenceManager.java
Log:
Bug Fix: don't call eFBPK when the instance *is* active.
Revision Changes Path
1.20 +3 -3 jboss/src/main/org/jboss/ejb/plugins/BMPPersistenceManager.java
Index: BMPPersistenceManager.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/BMPPersistenceManager.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- BMPPersistenceManager.java 2000/12/12 09:37:18 1.19
+++ BMPPersistenceManager.java 2000/12/27 18:33:42 1.20
@@ -36,7 +36,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
-* @version $Revision: 1.19 $
+* @version $Revision: 1.20 $
*/
public class BMPPersistenceManager
implements EntityPersistenceManager
@@ -434,10 +434,10 @@
// If so we check if the entity is in cache first
if (finderMethod.getName().equals("findByPrimaryKey"))
{
- if (!con.getInstanceCache().isActive(args[0]))
+ if (con.getInstanceCache().isActive(args[0]))
return args[0]; // Object is active -> it exists -> no need to call
finder
}
-
+
// get the finder method
Method callMethod = (Method)finderMethods.get(finderMethod);