Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attachment.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attachment.java,v diff -u -r1.2 -r1.3 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attachment.java 29 Jun 2005 06:32:38 -0000 1.2 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attachment.java 5 Jul 2005 02:44:36 -0000 1.3 @@ -14,23 +14,22 @@ * @hibernate.query name="getAttachmentbyType" query="from Attachment attachment where attachment.type = ?" */ public class Attachment extends GenericEntity { - protected byte[] data; + protected Long uuid; protected boolean type; protected String name; - protected String contentType; public final static boolean TYPE_ONLINE = true; public final static boolean TYPE_OFFLINE = false; /** - * @hibernate.property column="DATA" - * type="binary" + * @hibernate.property column="UUID" + * */ - public byte[] getData() { - return data; + public Long getUuid() { + return uuid; } - public void setData(byte[] data) { - this.data = data; + public void setUuid(Long uuid) { + this.uuid = uuid; } /** @@ -44,14 +43,6 @@ this.type = type; } - public String getContentType() { - return contentType; - } - - public void setContentType(String contentType) { - this.contentType = contentType; - } - /** * @hibernate.property column="NAME" */ @@ -63,4 +54,5 @@ this.name = name; } + }