Wednesday, July 2, 2008

Hibernate equals(); hashCode(); toString() methods

Implementing the interface below in all model classes.

http://www.hibernate.org/109.html

package com.ucc.csd.server.model;

public interface HibernateModel
{
    public int hashCode();
    public boolean equals(Object otherObject);
    public String toString();
}