Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attachment.java =================================================================== diff -u -r9a73adef86c080dc6aa2cbaf9147107234dd97b2 -r302de05d96387b309e2ebbaac06898a2df0eb949 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attachment.java (.../Attachment.java) (revision 9a73adef86c080dc6aa2cbaf9147107234dd97b2) +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/persistence/Attachment.java (.../Attachment.java) (revision 302de05d96387b309e2ebbaac06898a2df0eb949) @@ -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; } + }