Index: lams_common/conf/hibernate/mappings/learningdesign/Activity.hbm.xml =================================================================== diff -u -r7be08bdc387f5f78514d44a89caab0ba1eea7655 -r75c68086ca1df84b98d4f53ca4e152071ceb8b06 --- lams_common/conf/hibernate/mappings/learningdesign/Activity.hbm.xml (.../Activity.hbm.xml) (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) +++ lams_common/conf/hibernate/mappings/learningdesign/Activity.hbm.xml (.../Activity.hbm.xml) (revision 75c68086ca1df84b98d4f53ca4e152071ceb8b06) @@ -11,162 +11,72 @@ http://www.hibernate.org/ --> - - - @hibernate.class - table="lams_learning_activity" - + + @hibernate.class table="lams_learning_activity" + true + public abstract - - - @hibernate.id - generator-class="assigned" - type="java.lang.Long" - column="activity_id" - - + + @hibernate.id generator-class="assigned" type="java.lang.Long" column="activity_id" - - - @hibernate.property - column="id" - length="11" - + + @hibernate.property column="id" length="11" + true - - - @hibernate.property - column="description" - length="65535" - + + @hibernate.property column="description" length="65535" + true - - - @hibernate.property - column="title" - length="255" - + + @hibernate.property column="title" length="255" + true - - - @hibernate.property - column="xcoord" - length="11" - + + @hibernate.property column="xcoord" length="11" + true - - - @hibernate.property - column="ycoord" - length="11" - + + @hibernate.property column="ycoord" length="11" + true - - - @hibernate.property - column="order_id" - length="11" - + + @hibernate.property column="order_id" length="11" + true - - - @hibernate.property - column="define_later_flag" - length="4" - not-null="true" - + + @hibernate.property column="define_later_flag" length="4" not-null="true" + true - - - @hibernate.property - column="create_date_time" - length="19" - not-null="true" - + + @hibernate.property column="create_date_time" length="19" not-null="true" + true - - - @hibernate.property - column="offline_instructions" - length="65535" - + + @hibernate.property column="offline_instructions" length="65535" + true - + - + @hibernate.many-to-one not-null="true" - @hibernate.column name="learning_grouping_id" + @hibernate.column name="grouping_id" - + - + @@ -176,31 +86,22 @@ - - + - @hibernate.one-to-one - outer-join="auto" + @hibernate.many-to-one + not-null="true" + @hibernate.column name="learning_design_id" - - - - - @hibernate.one-to-one - outer-join="auto" - - - + + + - + - + - + @@ -289,54 +190,64 @@ - - - - @hibernate.one-to-one - outer-join="auto" - - - - - - @hibernate.one-to-one - outer-join="auto" - - - - - - @hibernate.many-to-one - not-null="true" - @hibernate.column name="learning_design_id" - - - - - - - @hibernate.many-to-one - not-null="true" - @hibernate.column name="learning_activity_type_id" - - - + + @hibernate.class + public abstract + + @hibernate.class + + + @hibernate.class + + @hibernate.class + + + @hibernate.class + + + + @hibernate.class + + + @hibernate.property column="gate_start_date_time" length="19" + true + + + @hibernate.property column="gate_end_date_time" length="19" + true + + + @hibernate.class + + + @hibernate.class + + + @hibernate.class + + + + + @hibernate.class + public abstract + + @hibernate.class + + @hibernate.property column="max_number_of_options" length="5" + true + + + @hibernate.property column="min_number_of_options" length="5" + true + + + + @hibernate.class + + + @hibernate.class + + Index: lams_common/conf/hibernate/mappings/learningdesign/Group.hbm.xml =================================================================== diff -u -r7be08bdc387f5f78514d44a89caab0ba1eea7655 -r75c68086ca1df84b98d4f53ca4e152071ceb8b06 --- lams_common/conf/hibernate/mappings/learningdesign/Group.hbm.xml (.../Group.hbm.xml) (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) +++ lams_common/conf/hibernate/mappings/learningdesign/Group.hbm.xml (.../Group.hbm.xml) (revision 75c68086ca1df84b98d4f53ca4e152071ceb8b06) @@ -9,17 +9,15 @@ http://boss.bekk.no/boss/middlegen/ http://www.hibernate.org/ - - modified by Chris Perfect --> @hibernate.class - table="lams_learning_group" + table="lams_group" + + + @hibernate.property + column="order_id" + length="6" + not-null="true" + + - + + - @hibernate.set - role="users" - table="lams_user-group" - lazy="true" - - @hibernate.collection-key - column="group_id" - - @hibernate.collection-many-to-many - class="com.lamsinternational.lams.usermanagement.User" - column="user_id" - + @hibernate.many-to-one + not-null="true" + @hibernate.column name="grouping_id" - - - - - + + Index: lams_common/conf/hibernate/mappings/learningdesign/Grouping.hbm.xml =================================================================== diff -u -r7be08bdc387f5f78514d44a89caab0ba1eea7655 -r75c68086ca1df84b98d4f53ca4e152071ceb8b06 --- lams_common/conf/hibernate/mappings/learningdesign/Grouping.hbm.xml (.../Grouping.hbm.xml) (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) +++ lams_common/conf/hibernate/mappings/learningdesign/Grouping.hbm.xml (.../Grouping.hbm.xml) (revision 75c68086ca1df84b98d4f53ca4e152071ceb8b06) @@ -9,20 +9,18 @@ http://boss.bekk.no/boss/middlegen/ http://www.hibernate.org/ - - Modified by Chris Perfect --> @hibernate.class - table="lams_learning_grouping" + table="lams_grouping" - - + true + @@ -62,18 +61,30 @@ length="11" + + + @hibernate.property + column="staff_group_id" + length="20" + + - + - @hibernate.list + @hibernate.set lazy="true" inverse="true" cascade="none" @@ -84,21 +95,39 @@ @hibernate.collection-one-to-many class="com.lamsinternational.lams.learningdesign.Group" - - - - - - - - + + + + @hibernate.set + lazy="true" + inverse="true" + cascade="none" + @hibernate.collection-key + column="grouping_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.Activity" + + + + + + + Index: lams_common/conf/hibernate/mappings/learningdesign/LearningDesign.hbm.xml =================================================================== diff -u -r7be08bdc387f5f78514d44a89caab0ba1eea7655 -r75c68086ca1df84b98d4f53ca4e152071ceb8b06 --- lams_common/conf/hibernate/mappings/learningdesign/LearningDesign.hbm.xml (.../LearningDesign.hbm.xml) (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) +++ lams_common/conf/hibernate/mappings/learningdesign/LearningDesign.hbm.xml (.../LearningDesign.hbm.xml) (revision 75c68086ca1df84b98d4f53ca4e152071ceb8b06) @@ -12,13 +12,14 @@ --> @hibernate.class table="lams_learning_design" + true @@ -71,12 +73,19 @@ length="255" - - - - - + + @hibernate.property + column="first_activity_id" + length="20" + + + - - @hibernate.property - column="object_type" - length="255" - - - @hibernate.property column="valid_design_flag" length="4" + not-null="true" @hibernate.property column="read_only_flag" length="4" + not-null="true" - - - @hibernate.property - column="user_id" - length="20" - not-null="true" - - - + - - - - + @@ -297,23 +281,8 @@ - + - - - - - - - - - + + true @@ -76,7 +78,7 @@ - + + true @@ -88,44 +90,44 @@ - + @hibernate.many-to-one not-null="true" - @hibernate.column name="to_activity_id" + @hibernate.column name="learning_design_id" - + - + @hibernate.many-to-one not-null="true" - @hibernate.column name="from_activity_id" + @hibernate.column name="to_activity_id" - + - + @hibernate.many-to-one not-null="true" - @hibernate.column name="learning_design_id" + @hibernate.column name="from_activity_id" - +