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) { public boolean isStorageCompatible(DbMapping other) {
if (other == null) { if (other == null) {
return !isRelational(); return !isRelational();
} } else if (other == this) {
return true;
if (isRelational()) { } else if (isRelational()) {
return getTableName().equals(other.getTableName()) && return getTableName().equals(other.getTableName()) &&
getDbSource().equals(other.getDbSource()); getDbSource().equals(other.getDbSource());
} }