don't hash on init script length since it will change. Hash based on class name.
This commit is contained in:
parent
53cedddcab
commit
509799095c
|
@ -58,17 +58,13 @@ public class SchemaInitializationProvider implements ISchemaInitializationProvid
|
||||||
|
|
||||||
SchemaInitializationProvider that = (SchemaInitializationProvider) theO;
|
SchemaInitializationProvider that = (SchemaInitializationProvider) theO;
|
||||||
|
|
||||||
return size() == that.size();
|
return this.getClass().getSimpleName() == that.getClass().getSimpleName();
|
||||||
}
|
|
||||||
|
|
||||||
private int size() {
|
|
||||||
return getSqlStatements(DriverTypeEnum.H2_EMBEDDED).size();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return new HashCodeBuilder(17, 37)
|
return new HashCodeBuilder(17, 37)
|
||||||
.append(size())
|
.append(this.getClass().getSimpleName())
|
||||||
.toHashCode();
|
.toHashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue