Fix bug where storage type name is null when a extended prototype inherits the _db but has its own _table. Allow extended prototypes to only override the _db, but not the _table.
This commit is contained in:
parent
7044354843
commit
fab316995a
1 changed files with 2 additions and 2 deletions
|
@ -484,7 +484,7 @@ public final class DbMapping {
|
|||
*/
|
||||
public DbSource getDbSource() {
|
||||
if (dbSource == null) {
|
||||
if ((tableName != null) && (dbSourceName != null)) {
|
||||
if (dbSourceName != null) {
|
||||
dbSource = app.getDbSource(dbSourceName);
|
||||
} else if (parentMapping != null) {
|
||||
return parentMapping.getDbSource();
|
||||
|
@ -1385,7 +1385,7 @@ public final class DbMapping {
|
|||
if (inheritsStorage()) {
|
||||
return parentMapping.getStorageTypeName();
|
||||
}
|
||||
return (dbSourceName == null) ? null : typename;
|
||||
return (getDbSourceName() == null) ? null : typename;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue