*** empty log message ***
[mir.git] / source / mircoders / entity / EntityUploadedMedia.java
index 71c7cd8..0d69b1b 100755 (executable)
@@ -45,7 +45,7 @@ import mircoders.storage.DatabaseUploadedMedia;
 /**
  *
  * @author mh, mir-coders group
- * @version $Id: EntityUploadedMedia.java,v 1.26.2.2 2003/11/24 23:37:18 rk Exp $
+ * @version $Id: EntityUploadedMedia.java,v 1.26.2.3 2003/11/26 19:21:04 rk Exp $
  */
 
 
@@ -65,12 +65,11 @@ public class EntityUploadedMedia extends Entity {
 
   public void update() throws StorageObjectFailure {
     super.update();
-    try {
-      // TODO rewrite as relational sql
-      theStorageObject.executeUpdate("update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")");
+    try {    
+      theStorageObject.executeUpdate( "update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")");
     }
     catch (SQLException e) {
-      throwStorageObjectFailure(e, "EntityAudio :: update :: failed!! ");
+      throwStorageObjectFailure(e, "EntityUploadedMedia :: update :: failed!! ");
     }
   }