db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oliv...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/core PersistenceBrokerImpl.java
Date Mon, 10 Nov 2003 13:09:27 GMT
oliverm     2003/11/10 05:09:27

  Modified:    src/java/org/apache/ojb/broker/core
                        PersistenceBrokerImpl.java
  Log:
  Improved exception message text when collection
  field cannot be stored.
  
  Revision  Changes    Path
  1.50      +4 -3      db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
  
  Index: PersistenceBrokerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- PersistenceBrokerImpl.java	7 Nov 2003 07:24:33 -0000	1.49
  +++ PersistenceBrokerImpl.java	10 Nov 2003 13:09:27 -0000	1.50
  @@ -817,9 +817,10 @@
                   }
                   else
                   {
  -                    throw new OJBRuntimeException(
  +                    String fieldName = cds.getClassDescriptor().getClassNameOfObject()
+ "." + cds.getAttributeName();
  +                    throw new OJBRuntimeException("When storing " + fieldName + ": " +
                               col.getClass()
  -                            + " can not be managed by OJB, use Array, Collection or ManageableCollection
instead !");
  +                            + " can not be managed by OJB. Use Array, Collection or ManageableCollection
instead !");
                   }
                   
                   while (colIterator.hasNext())
  
  
  

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