cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r620851 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/FieldResult.java
Date Tue, 12 Feb 2008 16:30:32 GMT
Author: aadamchik
Date: Tue Feb 12 08:30:27 2008
New Revision: 620851

URL: http://svn.apache.org/viewvc?rev=620851&view=rev
Log:
toString

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/FieldResult.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/FieldResult.java?rev=620851&r1=620850&r2=620851&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/FieldResult.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/FieldResult.java
Tue Feb 12 08:30:27 2008
@@ -18,6 +18,8 @@
  ****************************************************************/
 package org.apache.cayenne.query;
 
+import org.apache.commons.lang.builder.ToStringBuilder;
+
 /**
  * A metadata object that maps a result set column to an ObjAttribute or DbAttribute. Used
  * by {@link EntityResult}.
@@ -49,4 +51,10 @@
         return dbAttribute;
     }
 
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this).append("attributeName", attributeName).append(
+                "column",
+                column).append("db", dbAttribute).toString();
+    }
 }



Mime
View raw message