HHH-7728 Adapt hashcode to equals method
This commit is contained in:
parent
e66d98cd48
commit
a4f99386fb
|
@ -330,7 +330,14 @@ public class Table implements RelationalModel, Serializable {
|
|||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return isQuoted() ? name.hashCode() : name.toLowerCase().hashCode();
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result
|
||||
+ ((catalog == null) ? 0 : isCatalogQuoted() ? catalog.hashCode() : catalog.toLowerCase().hashCode());
|
||||
result = prime * result + ((name == null) ? 0 : isQuoted() ? name.hashCode() : name.toLowerCase().hashCode());
|
||||
result = prime * result
|
||||
+ ((schema == null) ? 0 : isSchemaQuoted() ? schema.hashCode() : schema.toLowerCase().hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue