db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r538366 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/IdentityFactoryImpl.java
Date Tue, 15 May 2007 23:03:12 GMT
Author: arminw
Date: Tue May 15 16:03:11 2007
New Revision: 538366

URL: http://svn.apache.org/viewvc?view=rev&rev=538366
Log:
optimize source

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/IdentityFactoryImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/IdentityFactoryImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/IdentityFactoryImpl.java?view=diff&rev=538366&r1=538365&r2=538366
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/IdentityFactoryImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/IdentityFactoryImpl.java
Tue May 15 16:03:11 2007
@@ -83,9 +83,9 @@
         catch(Exception e)
         {
             throw new PersistenceBrokerException("Can't create sequence manager for transient
key generation! "
-                    + PROPERTY_SEQUENCEMANAGER_TRANSIENT + "=" + name);
+                    + PROPERTY_SEQUENCEMANAGER_TRANSIENT + "=" + name, e);
         }
-        
+
         broker.addListener(this, true);
     }
 
@@ -122,7 +122,10 @@
                     cld = broker.getClassDescriptor(realClass);
                 }
                 topLevelClass = cld.getTopLevelClass();
-
+                /*
+                 arminw: similar check is used in BrokerHelper#hasNullPKField
+                 both methods have to be consistent!!
+                */
                 FieldDescriptor[] fields = cld.getPkFields();
                 pks = new Object[fields.length];
                 FieldDescriptor fld;



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message