Index: lams_common/conf/hibernate/mappings/learningdesign/Activity.hbm.xml =================================================================== diff -u --- lams_common/conf/hibernate/mappings/learningdesign/Activity.hbm.xml (revision 0) +++ lams_common/conf/hibernate/mappings/learningdesign/Activity.hbm.xml (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) @@ -0,0 +1,342 @@ + + + + + + + + + @hibernate.class + table="lams_learning_activity" + + + + + @hibernate.id + generator-class="assigned" + type="java.lang.Long" + column="activity_id" + + + + + + + + @hibernate.property + column="id" + length="11" + + + + + @hibernate.property + column="description" + length="65535" + + + + + @hibernate.property + column="title" + length="255" + + + + + @hibernate.property + column="xcoord" + length="11" + + + + + @hibernate.property + column="ycoord" + length="11" + + + + + @hibernate.property + column="order_id" + length="11" + + + + + @hibernate.property + column="define_later_flag" + length="4" + not-null="true" + + + + + @hibernate.property + column="create_date_time" + length="19" + not-null="true" + + + + + @hibernate.property + column="offline_instructions" + length="65535" + + + + + + + + + @hibernate.many-to-one + not-null="true" + @hibernate.column name="learning_grouping_id" + + + + + + + @hibernate.many-to-one + not-null="true" + @hibernate.column name="learning_library_id" + + + + + + + @hibernate.one-to-one + outer-join="auto" + + + + + + @hibernate.one-to-one + outer-join="auto" + + + + + + @hibernate.set + lazy="true" + inverse="true" + cascade="none" + + @hibernate.collection-key + column="to_activity_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.LamsLearningTransition" + + + + + + + + + + @hibernate.set + lazy="true" + inverse="true" + cascade="none" + + @hibernate.collection-key + column="from_activity_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.LamsLearningTransition" + + + + + + + + + + @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.LamsLearningActivity" + + + + + + + + + + @hibernate.many-to-one + not-null="true" + @hibernate.column name="parent_activity_id" + + + + + + + @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" + + + + + + Index: lams_common/conf/hibernate/mappings/learningdesign/Group.hbm.xml =================================================================== diff -u --- lams_common/conf/hibernate/mappings/learningdesign/Group.hbm.xml (revision 0) +++ lams_common/conf/hibernate/mappings/learningdesign/Group.hbm.xml (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) @@ -0,0 +1,69 @@ + + + + + + + + + @hibernate.class + table="lams_learning_group" + + + + + @hibernate.id + generator-class="assigned" + type="java.lang.Long" + column="group_id" + + + + + + + + + + + @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" + + + + + + + + + + Index: lams_common/conf/hibernate/mappings/learningdesign/Grouping.hbm.xml =================================================================== diff -u --- lams_common/conf/hibernate/mappings/learningdesign/Grouping.hbm.xml (revision 0) +++ lams_common/conf/hibernate/mappings/learningdesign/Grouping.hbm.xml (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) @@ -0,0 +1,104 @@ + + + + + + + + + @hibernate.class + table="lams_learning_grouping" + + + + + + @hibernate.id + generator-class="assigned" + type="java.lang.Long" + column="grouping_id" + + + + + + + + @hibernate.property + column="number_of_groups" + length="11" + + + + + @hibernate.property + column="learners_per_group" + length="11" + + + + + + + + + @hibernate.list + lazy="true" + inverse="true" + cascade="none" + + @hibernate.collection-key + column="grouping_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.Group" + + + + + + + + + + + + + + + + + Index: lams_common/conf/hibernate/mappings/learningdesign/LearningDesign.hbm.xml =================================================================== diff -u --- lams_common/conf/hibernate/mappings/learningdesign/LearningDesign.hbm.xml (revision 0) +++ lams_common/conf/hibernate/mappings/learningdesign/LearningDesign.hbm.xml (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) @@ -0,0 +1,369 @@ + + + + + + + + + @hibernate.class + table="lams_learning_design" + + + + + @hibernate.id + generator-class="assigned" + type="java.lang.Long" + column="learning_design_id" + + + + + + + + @hibernate.property + column="id" + length="11" + + + + + @hibernate.property + column="description" + length="65535" + + + + + @hibernate.property + column="title" + length="255" + + + + + + + + + + @hibernate.property + column="max_id" + length="11" + + + + + @hibernate.property + column="object_type" + length="255" + + + + + @hibernate.property + column="valid_design_flag" + length="4" + + + + + @hibernate.property + column="read_only_flag" + length="4" + + + + + @hibernate.property + column="date_read_only" + length="19" + + + + + @hibernate.property + column="read_access" + length="20" + + + + + @hibernate.property + column="write_access" + length="20" + + + + + @hibernate.property + column="help_text" + length="65535" + + + + + @hibernate.property + column="lesson_copy_flag" + length="4" + not-null="true" + + + + + @hibernate.property + column="create_date_time" + length="19" + not-null="true" + + + + + @hibernate.property + column="version" + length="56" + not-null="true" + + + + + @hibernate.property + column="open_date_time" + length="19" + + + + + @hibernate.property + column="close_date_time" + length="19" + + + + + + + + @hibernate.property + column="user_id" + length="20" + not-null="true" + + + + + + @hibernate.set + lazy="true" + inverse="true" + cascade="none" + + @hibernate.collection-key + column="parent_learning_design_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.LamsLearningDesign" + + + + + + + + + + + + + @hibernate.many-to-one + not-null="true" + @hibernate.column name="parent_learning_design_id" + + + + + + + + + + + + + + + @hibernate.set + lazy="true" + inverse="true" + cascade="none" + + @hibernate.collection-key + column="learning_design_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.Transition" + + + + + + + + + + @hibernate.set + lazy="true" + inverse="true" + cascade="none" + + @hibernate.collection-key + column="learning_design_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.Activity" + + + + + + + + + Index: lams_common/conf/hibernate/mappings/learningdesign/LearningLibrary.hbm.xml =================================================================== diff -u --- lams_common/conf/hibernate/mappings/learningdesign/LearningLibrary.hbm.xml (revision 0) +++ lams_common/conf/hibernate/mappings/learningdesign/LearningLibrary.hbm.xml (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) @@ -0,0 +1,107 @@ + + + + + + + + + @hibernate.class + table="lams_learning_library" + + + + + @hibernate.id + generator-class="assigned" + type="java.lang.Long" + column="learning_library_id" + + + + + + + + @hibernate.property + column="description" + length="65535" + + + + + @hibernate.property + column="title" + length="255" + + + + + @hibernate.property + column="create_date_time" + length="19" + not-null="true" + + + + + + + + + @hibernate.set + lazy="true" + inverse="true" + cascade="none" + + @hibernate.collection-key + column="learning_library_id" + + @hibernate.collection-one-to-many + class="com.lamsinternational.lams.learningdesign.Activity" + + + + + + + + + Index: lams_common/conf/hibernate/mappings/learningdesign/Transition.hbm.xml =================================================================== diff -u --- lams_common/conf/hibernate/mappings/learningdesign/Transition.hbm.xml (revision 0) +++ lams_common/conf/hibernate/mappings/learningdesign/Transition.hbm.xml (revision 7be08bdc387f5f78514d44a89caab0ba1eea7655) @@ -0,0 +1,132 @@ + + + + + + + + + @hibernate.class + table="lams_learning_transition" + + + + + @hibernate.id + generator-class="assigned" + type="java.lang.Long" + column="transition_id" + + + + + + + + @hibernate.property + column="id" + length="11" + + + + + @hibernate.property + column="description" + length="65535" + + + + + @hibernate.property + column="title" + length="255" + + + + + @hibernate.property + column="create_date_time" + length="19" + not-null="true" + + + + + + + + + @hibernate.many-to-one + not-null="true" + @hibernate.column name="to_activity_id" + + + + + + + @hibernate.many-to-one + not-null="true" + @hibernate.column name="from_activity_id" + + + + + + + @hibernate.many-to-one + not-null="true" + @hibernate.column name="learning_design_id" + + + + + +