Minor code improvement in isStorageCompatible()
This commit is contained in:
parent
0deb7c3a53
commit
525739eaa5
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue