super();
this.theTable="content";
this.theCoreTable="media";
+
relationComments = new EntityRelation("id", "to_media", DatabaseComment.getInstance(), EntityRelation.TO_MANY);
relationFeature = new EntityRelation("id", "to_feature", DatabaseFeature.getInstance(), EntityRelation.TO_ONE);
try { this.theEntityClass = Class.forName("mircoders.entity.EntityContent"); }
return feature;
}
- public boolean delete(String id)
- throws StorageObjectException {
+ public boolean delete(String id) throws StorageObjectException
+ {
DatabaseComment.getInstance().deleteByContentId(id);
super.delete(id);
return true;