cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r725017 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LazyClassDescriptorDecorator.java
Date Wed, 10 Dec 2008 07:08:35 GMT
Author: aadamchik
Date: Tue Dec  9 23:08:35 2008
New Revision: 725017

URL: http://svn.apache.org/viewvc?rev=725017&view=rev
Log:
adding toString to simplify debugging

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LazyClassDescriptorDecorator.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LazyClassDescriptorDecorator.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LazyClassDescriptorDecorator.java?rev=725017&r1=725016&r2=725017&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LazyClassDescriptorDecorator.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LazyClassDescriptorDecorator.java
Tue Dec  9 23:08:35 2008
@@ -27,6 +27,7 @@
 import org.apache.cayenne.map.EntityInheritanceTree;
 import org.apache.cayenne.map.ObjEntity;
 import org.apache.cayenne.query.EntityResultMetadata;
+import org.apache.cayenne.util.ToStringBuilder;
 
 /**
  * A ClassDescriptor wrapper that compiles decorated descriptor lazily on first access.
@@ -44,6 +45,11 @@
         this.descriptorMap = descriptorMap;
         this.entityName = entityName;
     }
+    
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this).append("entity", entityName).toString();
+    }
 
     /**
      * Checks whether decorated descriptor is initialized, and if not, creates it using



Mime
View raw message