Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java =================================================================== diff -u -ra766c8fe51dfa314947b20ef98e525d63b328fbe -ra212ebcd0dd7e3ef46b7ee2e1369f7430b9e497e --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java (.../NoticeboardContent.java) (revision a766c8fe51dfa314947b20ef98e525d63b328fbe) +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java (.../NoticeboardContent.java) (revision a212ebcd0dd7e3ef46b7ee2e1369f7430b9e497e) @@ -97,10 +97,32 @@ this.nbSessions = nbSessions; } + /** + * Minimal Constructor used to initialise values for the NoticeboardContent object + * @return + */ + public NoticeboardContent(Long nbContentId, + String title, + String content, + String onlineInstructions, + String offlineInstructions, + Date dateCreated) + { + this.nbContentId = nbContentId; + this.title = title; + this.content = content; + this.onlineInstructions = onlineInstructions; + this.offlineInstructions = offlineInstructions; + this.defineLater = false; + this.forceOffline = false; + this.creatorUserId = null; + this.dateCreated = dateCreated; + this.dateUpdated = null; + this.nbSessions = new TreeSet(); + } - /** * @hibernate.property * column="content"