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:
Albert Lee 2010-02-11 16:22:58 +00:00
parent fb004027ad
commit 80d6c79b52
1 changed files with 5 additions and 3 deletions

View File

@ -886,8 +886,10 @@ public class ConfigurationImpl
if (_vals.size() != conf.getValues().length)
return false;
for(Value v : _vals) {
Value thatV = conf.getValue(v.getProperty());
if (!v.equals(thatV)) {
String propName = v.getProperty();
Value thisV = this.getValue(propName);
Value thatV = conf.getValue(propName);
if (!thisV.equals(thatV)) {
return false;
}
}