mirror of https://github.com/apache/openjpa.git
OPENJPA-1506 - Fix ConfigurationImpl.equals() to support derived provider.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909058 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb004027ad
commit
80d6c79b52
|
@ -885,9 +885,11 @@ public class ConfigurationImpl
|
|||
ConfigurationImpl conf = (ConfigurationImpl) other;
|
||||
if (_vals.size() != conf.getValues().length)
|
||||
return false;
|
||||
for(Value v : _vals) {
|
||||
Value thatV = conf.getValue(v.getProperty());
|
||||
if (!v.equals(thatV)) {
|
||||
for(Value v : _vals) {
|
||||
String propName = v.getProperty();
|
||||
Value thisV = this.getValue(propName);
|
||||
Value thatV = conf.getValue(propName);
|
||||
if (!thisV.equals(thatV)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue