* This class handles storage of audio data and meta data\r
*\r
* @author mh\r
- * @version $Id: EntityAudio.java,v 1.7 2003/03/04 22:00:52 zapata Exp $\r
+ * @version $Id: EntityAudio.java,v 1.8 2003/03/16 19:34:43 zapata Exp $\r
*/\r
\r
\r
public void update() throws StorageObjectFailure {\r
super.update();\r
try {\r
- theStorageObject.executeUpdate("update content set is_produced='0' where existto_media=" + getId());\r
+ theStorageObject.executeUpdate("update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")");\r
}\r
catch (SQLException e) {\r
throwStorageObjectFailure(e, "EntityAudio :: update :: failed!! ");\r