[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Cache issue with EclipseLink?
|
Hi, seems that the same issue is with following implementation. Any hints?
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
if (!(object instanceof TripLocalizedInfo)) {
return false;
}
TripLocalizedInfo other = (TripLocalizedInfo) object;
if ((this.id == null && other.id != null) || (this.id != null &&
!this.id.equals(other.id))) {
return false;
} else if ((this.id == null && other.id == null) ) { return (this ==
other); } // instance comparsion in case no id set by persistence
return true;
}
@Override
public String toString() {
return "com.geotrips.entity.TripLocalizedInfo[id=" + id + "]";
}
--
View this message in context: http://old.nabble.com/Cache-issue-with-EclipseLink--tp22440339p28948602.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.