tweaked getStorageName, no special treatment for hopobject is required.

This commit is contained in:
hns 2001-08-03 14:40:30 +00:00
parent 2baa845dfe
commit 2b4dec4e34

View file

@ -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;
} }
} }