You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ol...@apache.org on 2004/02/28 10:24:39 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/otm/core ConcreteEditingContext.java
olegnitz 2004/02/28 01:24:39
Modified: src/java/org/apache/ojb/otm/core ConcreteEditingContext.java
Log:
Removed minor optimization based on wrong assumption about PB cache behavior
Revision Changes Path
1.35 +2 -11 db-ojb/src/java/org/apache/ojb/otm/core/ConcreteEditingContext.java
Index: ConcreteEditingContext.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/core/ConcreteEditingContext.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- ConcreteEditingContext.java 23 Feb 2004 19:10:21 -0000 1.34
+++ ConcreteEditingContext.java 28 Feb 2004 09:24:39 -0000 1.35
@@ -203,17 +203,8 @@
}
else
{
- Object origObj;
-
- if ((!mainObject && !isDependent) || kit.isInsertVerified())
- {
- origObj = _pb.getObjectByIdentity(oid);
- }
- else
- {
- ObjectCache cache = _pb.serviceObjectCache();
- origObj = cache.lookup(oid);
- }
+ Object origObj = _pb.getObjectByIdentity(oid);
+
if (origObj == null)
{
if (mainObject || isDependent)
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org