db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata RepositoryXmlHandler.java
Date Thu, 16 Sep 2004 18:33:09 GMT
arminw      2004/09/16 11:33:09

  Modified:    src/java/org/apache/ojb/broker/metadata Tag: OJB_1_0_RELEASE
                        RepositoryXmlHandler.java
  Log:
  fix bug for update-locking attribute
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.58.2.1  +6 -3      db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java
  
  Index: RepositoryXmlHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java,v
  retrieving revision 1.58
  retrieving revision 1.58.2.1
  diff -u -r1.58 -r1.58.2.1
  --- RepositoryXmlHandler.java	4 Apr 2004 23:53:34 -0000	1.58
  +++ RepositoryXmlHandler.java	16 Sep 2004 18:33:09 -0000	1.58.2.1
  @@ -427,8 +427,11 @@
   
                           String updateLock = atts.getValue(tags.getTagById(UPDATE_LOCK));
                           if (isDebug) logger.debug("     " + tags.getTagById(UPDATE_LOCK)
+ ": " + updateLock);
  -                        b = (Boolean.valueOf(updateLock)).booleanValue();
  -                        m_CurrentFLD.setUpdateLock(b);
  +                        if(checkString(updateLock))
  +                        {
  +                            b = (Boolean.valueOf(updateLock)).booleanValue();
  +                            m_CurrentFLD.setUpdateLock(b);
  +                        }
   
                           String fieldConversion = atts.getValue(tags.getTagById(FIELD_CONVERSION));
                           if (isDebug) logger.debug("     " + tags.getTagById(FIELD_CONVERSION)
+ ": " + fieldConversion);
  
  
  

---------------------------------------------------------------------
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