openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r951750 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/LongId.java
Date Sat, 05 Jun 2010 18:49:24 GMT
Author: ppoddar
Date: Sat Jun  5 18:49:24 2010
New Revision: 951750

URL: http://svn.apache.org/viewvc?rev=951750&view=rev
Log:
OPENJPA-1683: Adding toString() on LongId to align with other built-in id toString(). May
need to rollback if regresses existing systems

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/LongId.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/LongId.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/LongId.java?rev=951750&r1=951749&r2=951750&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/LongId.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/LongId.java Sat Jun
 5 18:49:24 2010
@@ -53,6 +53,10 @@ public final class LongId extends OpenJP
     public Object getIdObject() {
         return key;
     }
+    
+    public String toString() {
+        return String.valueOf(key);
+    }
 
     protected int idHash() {
         return (int) (key ^ (key >>> 32));



Mime
View raw message