Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv29617/cirrus/hibernate/test
Modified Files:
CustomPersister.java
Log Message:
* CodeGenerator Improvements:
- fixed some problems with composite-ids
- composite-id classes now implement equals(), hashCCode()
- all generated classes implement toString()
* Use ObjectUtil.equals() in a bunch of places
Index: CustomPersister.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/CustomPersister.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** CustomPersister.java 26 Nov 2002 03:35:44 -0000 1.15
--- CustomPersister.java 29 Dec 2002 01:30:55 -0000 1.16
***************
*** 7,10 ****
--- 7,12 ----
import java.util.Hashtable;
+ import org.apache.commons.lang.ObjectUtils;
+
import cirrus.hibernate.Hibernate;
import cirrus.hibernate.HibernateException;
***************
*** 173,177 ****
SessionImplementor session)
throws HibernateException {
! if ( x[0]!=y[0] && ( x[0]==null || y[0]==null || !x[0].equals(y[0]) ) ) {
return new int[] { 0 };
}
--- 175,179 ----
SessionImplementor session)
throws HibernateException {
! if ( !ObjectUtils.equals( x[0], y[0] ) ) {
return new int[] { 0 };
}
|