Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java =================================================================== diff -u -r453f2eba48028eae64432e141884df0830804909 -r52a4351eae82892bd70258e945803a29ca23e112 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java (.../NoticeboardContent.java) (revision 453f2eba48028eae64432e141884df0830804909) +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/NoticeboardContent.java (.../NoticeboardContent.java) (revision 52a4351eae82892bd70258e945803a29ca23e112) @@ -56,6 +56,9 @@ /** nullable persistent field */ private boolean forceOffline; + + /** nullable persistent field */ + private boolean contentInUse; /** nullable persistent field */ private Long creatorUserId; @@ -206,6 +209,21 @@ this.forceOffline = forceOffline; } + /** + * @hibernate.property + * column="content_in_use" + * length="1" + */ + + public boolean isContentInUse() { + return contentInUse; + } + /** + * @param contentInUse The contentInUse to set. + */ + public void setContentInUse(boolean contentInUse) { + this.contentInUse = contentInUse; + } /** * @hibernate.property @@ -225,7 +243,7 @@ * @hibernate.set * lazy="true" * inverse="true" - * cascade="none" + * cascade="all-delete-orphan" * @hibernate.collection-key * column="nb_content_id" * @hibernate.collection-one-to-many @@ -299,8 +317,7 @@ this.uid = uid; } - - + /** * * @param nb NoticeboardContent object containing the content to copy from @@ -322,4 +339,5 @@ return newContent; } + }