[hibernate-commits] Hibernate SVN: r10819 - branches/Branch_3_2/Hibernate3/src/org/hibernate/type

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Nov 16 00:12:22 EST 2006


Author: steve.ebersole at jboss.com
Date: 2006-11-16 00:12:20 -0500 (Thu, 16 Nov 2006)
New Revision: 10819

Modified:
   branches/Branch_3_2/Hibernate3/src/org/hibernate/type/SerializableType.java
Log:
on second thought...

Modified: branches/Branch_3_2/Hibernate3/src/org/hibernate/type/SerializableType.java
===================================================================
--- branches/Branch_3_2/Hibernate3/src/org/hibernate/type/SerializableType.java	2006-11-16 05:12:01 UTC (rev 10818)
+++ branches/Branch_3_2/Hibernate3/src/org/hibernate/type/SerializableType.java	2006-11-16 05:12:20 UTC (rev 10819)
@@ -45,19 +45,13 @@
 	}
 
 	public boolean isEqual(Object x, Object y) throws HibernateException {
-		if (x==y) return true;
-		if (x==null || y==null) return false;
-		return Hibernate.BINARY.isEqual( toBytes(x), toBytes(y) );
-	}
-
-	public boolean isDirty(Object old, Object current, SessionImplementor session) throws HibernateException {
-		if ( old == current ) {
+		if ( x == y ) {
 			return true;
 		}
-		if ( old == null || current == null ) {
+		if ( x == null || y == null ) {
 			return false;
 		}
-		return old.equals( current ) || Hibernate.BINARY.isEqual( toBytes( old ), toBytes( current ) );
+		return x.equals( y ) || Hibernate.BINARY.isEqual( toBytes( x ), toBytes( y ) );
 	}
 
 	public int getHashCode(Object x, EntityMode entityMode) {




More information about the hibernate-commits mailing list