Minor code improvement in isStorageCompatible()

This commit is contained in:
hns 2005-05-13 15:26:55 +00:00
parent 0deb7c3a53
commit 525739eaa5

View file

@ -1314,9 +1314,9 @@ public final class DbMapping {
public boolean isStorageCompatible(DbMapping other) {
if (other == null) {
return !isRelational();
}
if (isRelational()) {
} else if (other == this) {
return true;
} else if (isRelational()) {
return getTableName().equals(other.getTableName()) &&
getDbSource().equals(other.getDbSource());
}