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) {
|
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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue