Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Activity.hbm.xml =================================================================== diff -u -r5cbf4e85d5e743f5880e80f41283fb55f791af03 -r5f90406e7b5bd8c4c2229d1643279d33c1b11246 --- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Activity.hbm.xml (.../Activity.hbm.xml) (revision 5cbf4e85d5e743f5880e80f41283fb55f791af03) +++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Activity.hbm.xml (.../Activity.hbm.xml) (revision 5f90406e7b5bd8c4c2229d1643279d33c1b11246) @@ -11,7 +11,7 @@ http://www.hibernate.org/ --> - + @hibernate.class table="lams_learning_activity" true @@ -137,17 +137,10 @@ @hibernate.class - + @hibernate.class @@ -175,14 +168,18 @@ @hibernate.class public abstract + - - + + @hibernate.set lazy="true" inverse="true" cascade="none" + @hibernate.collection-key column="parent_activity_id" + @hibernate.collection-one-to-many class="com.lamsinternational.lams.learningdesign.Activity" + - + - + @hibernate.class @hibernate.property column="max_number_of_options" length="5" Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Group.hbm.xml =================================================================== diff -u -r5cbf4e85d5e743f5880e80f41283fb55f791af03 -r5f90406e7b5bd8c4c2229d1643279d33c1b11246 --- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Group.hbm.xml (.../Group.hbm.xml) (revision 5cbf4e85d5e743f5880e80f41283fb55f791af03) +++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Group.hbm.xml (.../Group.hbm.xml) (revision 5f90406e7b5bd8c4c2229d1643279d33c1b11246) @@ -56,7 +56,7 @@ - + + - - - - - - - - + + + @hibernate.set lazy="true" inverse="true" cascade="none" + @hibernate.collection-key column="grouping_id" + @hibernate.collection-one-to-many class="com.lamsinternational.lams.learningdesign.Group" + + + + - + - - - + + - + + + + + @hibernate.many-to-one not-null="true" + @hibernate.column name="first_activity_id" + + + + + + + + @hibernate.many-to-one not-null="true" + @hibernate.column name="parent_learning_design_id" + + + + - - - - @@ -237,23 +241,10 @@ /> - - - - - - - - + + + + Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/LearningLibrary.hbm.xml =================================================================== diff -u -r5cbf4e85d5e743f5880e80f41283fb55f791af03 -r5f90406e7b5bd8c4c2229d1643279d33c1b11246 --- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/LearningLibrary.hbm.xml (.../LearningLibrary.hbm.xml) (revision 5cbf4e85d5e743f5880e80f41283fb55f791af03) +++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/LearningLibrary.hbm.xml (.../LearningLibrary.hbm.xml) (revision 5f90406e7b5bd8c4c2229d1643279d33c1b11246) @@ -56,9 +56,9 @@ - @@ -69,8 +69,7 @@ - - + Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LearnerProgress.hbm.xml =================================================================== diff -u -reae5386d67e9b2e0d7f38d7e61bc1d3b9867f44e -r5f90406e7b5bd8c4c2229d1643279d33c1b11246 --- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LearnerProgress.hbm.xml (.../LearnerProgress.hbm.xml) (revision eae5386d67e9b2e0d7f38d7e61bc1d3b9867f44e) +++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LearnerProgress.hbm.xml (.../LearnerProgress.hbm.xml) (revision 5f90406e7b5bd8c4c2229d1643279d33c1b11246) @@ -38,60 +38,7 @@ - - - - - - @hibernate.set - lazy="true" - inverse="true" - cascade="none" - - @hibernate.collection-key - column="learner_progress_id" - - @hibernate.collection-one-to-many - class="com.lamsinternational.lams.lesson.ProgressCurrent" - - - - - - - - - - @hibernate.set - lazy="true" - inverse="true" - cascade="none" - - @hibernate.collection-key - column="learner_progress_id" - - @hibernate.collection-one-to-many - class="com.lamsinternational.lams.lesson.ProgressCompleted" - - - - - - + - - - @hibernate.class - table="lams_lesson" - + true - - @hibernate.id - generator-class="identity" - type="java.lang.Long" - column="lesson_id" - - @@ -44,77 +29,69 @@ not-null="true" length="19" > - - @hibernate.property - column="create_date_time" - length="19" - not-null="true" - + - - @hibernate.property - column="start_date_time" - length="19" - + - - @hibernate.property - column="end_date_time" - length="19" - + + + + + - + + + + + + + + + - - @hibernate.many-to-one - not-null="true" - @hibernate.column name="user_id" - - - - - @hibernate.many-to-one - not-null="true" - @hibernate.column name="lams_lesson_state_id" - - - + - - @hibernate.many-to-one - not-null="true" - @hibernate.column name="learning_design_id" - + @@ -124,36 +101,21 @@ inverse="true" cascade="none" > - - @hibernate.set - lazy="true" - inverse="true" - cascade="none" - @hibernate.collection-key - column="lesson_id" - - @hibernate.collection-one-to-many - class="com.lamsinternational.lams.lesson.LearnerProgress" - - + - - @hibernate.many-to-one - not-null="true" - @hibernate.column name="class_grouping_id" - + @@ -162,11 +124,7 @@ class="com.lamsinternational.lams.usermanagement.Organisation" not-null="true" > - - @hibernate.many-to-one - not-null="true" - @hibernate.column name="organisation_id" - + Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolContent.hbm.xml =================================================================== diff -u -ra1327e359cb6e41546a6b2e4ba05ae5c7247c185 -r5f90406e7b5bd8c4c2229d1643279d33c1b11246 --- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolContent.hbm.xml (.../ToolContent.hbm.xml) (revision a1327e359cb6e41546a6b2e4ba05ae5c7247c185) +++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolContent.hbm.xml (.../ToolContent.hbm.xml) (revision 5f90406e7b5bd8c4c2229d1643279d33c1b11246) @@ -12,7 +12,7 @@ -->