RT,看到个解决办法,不知用的是那个JDK版本,目前5 6找不到
如下该用什么取代
public boolean equals(Object x, Object y) throws HibernateException
{
// TODO Auto-generated method stub if(x==y) return true; return EqualsBuilder().append(x, y).isEquals();
}public int hashCode(Object x) throws HibernateException
{
// TODO Auto-generated method stub
return new HashCodeBuilder().append(x).toHashCode();
}
如下该用什么取代
public boolean equals(Object x, Object y) throws HibernateException
{
// TODO Auto-generated method stub if(x==y) return true; return EqualsBuilder().append(x, y).isEquals();
}public int hashCode(Object x) throws HibernateException
{
// TODO Auto-generated method stub
return new HashCodeBuilder().append(x).toHashCode();
}
在第3方包apache commons-lang 里面:http://commons.apache.org/lang/download_lang.cgi