HHH-7728 Include schema and catalog in equals

This commit is contained in:
Thorsten Schäfer 2012-10-30 16:06:43 +01:00 committed by brmeyer
parent e1ad7c51df
commit 776470b85a
1 changed files with 3 additions and 1 deletions

View File

@ -346,7 +346,9 @@ public class Table implements RelationalModel, Serializable {
return true;
}
return isQuoted() ? name.equals(table.getName()) : name.equalsIgnoreCase(table.getName());
return isQuoted() ? name.equals(table.getName()) : name.equalsIgnoreCase(table.getName())
&& isSchemaQuoted() ? schema.equals(table.getSchema()) : schema.equalsIgnoreCase(table.getSchema())
&& isCatalogQuoted() ? catalog.equals(table.getCatalog()) : catalog.equalsIgnoreCase(table.getCatalog());
}
public void validateColumns(Dialect dialect, Mapping mapping, TableMetadata tableInfo) {