don't hash on init script length since it will change. Hash based on class name.

This commit is contained in:
Ken Stevens 2019-11-04 10:45:02 -05:00
parent 53cedddcab
commit 509799095c
1 changed files with 2 additions and 6 deletions

View File

@ -58,17 +58,13 @@ public class SchemaInitializationProvider implements ISchemaInitializationProvid
SchemaInitializationProvider that = (SchemaInitializationProvider) theO;
return size() == that.size();
}
private int size() {
return getSqlStatements(DriverTypeEnum.H2_EMBEDDED).size();
return this.getClass().getSimpleName() == that.getClass().getSimpleName();
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37)
.append(size())
.append(this.getClass().getSimpleName())
.toHashCode();
}