Author: steve.ebersole(a)jboss.com
Date: 2006-11-16 00:12:01 -0500 (Thu, 16 Nov 2006)
New Revision: 10818
Modified:
trunk/Hibernate3/src/org/hibernate/type/SerializableType.java
Log:
on second thought...
Modified: trunk/Hibernate3/src/org/hibernate/type/SerializableType.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/type/SerializableType.java 2006-11-15 19:47:44 UTC
(rev 10817)
+++ trunk/Hibernate3/src/org/hibernate/type/SerializableType.java 2006-11-16 05:12:01 UTC
(rev 10818)
@@ -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) {
Show replies by date