logger = new LoggerWrapper("Database.OtherMedia");
hasTimestamp = true;
- theTable = "other_media";
- theCoreTable = "media";
+ mainTable = "other_media";
+ primaryKeySequence = "media_id_seq";
theEntityClass = mircoders.entity.EntityOther.class;
}
public void update(Entity theEntity) throws StorageObjectFailure {
- String date = theEntity.getValue("date");
+ String date = theEntity.getFieldValue("date");
if (date == null) {
date = StringUtil.date2webdbDate(new GregorianCalendar());
- theEntity.setValueForProperty("date", date);
+ theEntity.setFieldValue("date", date);
}
super.update(theEntity);
}
public String insert(Entity theEntity) throws StorageObjectFailure {
- String date = theEntity.getValue("date");
+ String date = theEntity.getFieldValue("date");
if (date == null) {
date = StringUtil.date2webdbDate(new GregorianCalendar());
- theEntity.setValueForProperty("date", date);
+ theEntity.setFieldValue("date", date);
}
return super.insert(theEntity);
}