Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java,v diff -u -r1.6 -r1.7 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java 19 Jul 2005 07:11:55 -0000 1.6 +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java 29 Jul 2005 04:24:55 -0000 1.7 @@ -74,6 +74,8 @@ /** persistent field */ private Set nbSessions = new HashSet(); + private Set nbAttachments = new HashSet(); + /** default constructor */ public NoticeboardContent() { @@ -250,7 +252,7 @@ * inverse="true" * cascade="all-delete-orphan" * @hibernate.collection-key - * column="nb_content_id" + * column="nb_content_uid" * @hibernate.collection-one-to-many * class="org.lamsfoundation.lams.tool.noticeboard.NoticeboardSession" */ @@ -267,6 +269,28 @@ } /** + * @hibernate.set + * lazy="true" + * inverse="true" + * cascade="all-delete-orphan" + * @hibernate.collection-key + * column="nb_content_uid" + * @hibernate.collection-one-to-many + * class="org.lamsfoundation.lams.tool.noticeboard.NoticeboardAttachment" + */ + public Set getNbAttachments() { + return nbAttachments; + } + /** + * @param nbAttachments The nbAttachments to set. + */ + public void setNbAttachments(Set nbAttachments) { + this.nbAttachments = nbAttachments; + } + + + + /** * * @hibernate.property * column="offline_instructions" @@ -322,7 +346,12 @@ this.uid = uid; } + + + + + /** * * @param nb NoticeboardContent object containing the content to copy from