*/
public StoreIdentifier getStoreIdentifier() {
String id = getId();
- if ( id!=null && storageObject!= null )
- return new StoreIdentifier(this, id+"@"+storageObject.getTableName());
+ if ( id!=null && database!= null )
+ return new StoreIdentifier(this, id+"@"+database.getTableName());
return null;
}
public static final StoreIdentifier getStoreIdentifier(Database theStorage,
Class theEntityClass, ResultSet rs) throws SQLException {
- String idcol = theStorage.getIdName();
+ String idcol = theStorage.getIdFieldName();
String idval = rs.getObject(idcol).toString();
if (idval != null) {