HHH-6758 : Test failure due to Oracle restrictions on Blob comparison and missing equals() and hashCode()
This commit is contained in:
parent
4eca0b5e97
commit
0d007bce7c
|
@ -17,4 +17,27 @@ public class Country implements Serializable {
|
|||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if ( this == o ) {
|
||||
return true;
|
||||
}
|
||||
if ( o == null || getClass() != o.getClass() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Country country = (Country) o;
|
||||
|
||||
if ( name != null ? !name.equals( country.name ) : country.name != null ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return name != null ? name.hashCode() : 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue