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 980554f97a
commit e66d98cd48
1 changed files with 3 additions and 1 deletions

View File

@ -346,7 +346,9 @@ public class Table implements RelationalModel, Serializable {
return true; 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) { public void validateColumns(Dialect dialect, Mapping mapping, TableMetadata tableInfo) {