tweaked getStorageName, no special treatment for hopobject is required.
This commit is contained in:
parent
2baa845dfe
commit
2b4dec4e34
1 changed files with 7 additions and 2 deletions
|
@ -518,10 +518,15 @@ public class DbMapping implements Updatable {
|
||||||
return db2prop;
|
return db2prop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the name of the prototype which specifies the storage location
|
||||||
|
* (dbsource + tablename) for this type, or null if it is stored in the embedded
|
||||||
|
* db.
|
||||||
|
*/
|
||||||
public String getStorageTypeName () {
|
public String getStorageTypeName () {
|
||||||
if (table == null && parentMapping != null && !"hopobject".equalsIgnoreCase (extendsProto))
|
if (table == null && parentMapping != null)
|
||||||
return parentMapping.getStorageTypeName ();
|
return parentMapping.getStorageTypeName ();
|
||||||
return typename;
|
return sourceName == null ? null : typename;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue