Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Activity.hbm.xml
===================================================================
diff -u -r98e4c9f22a6124646416be2a0194ba4d3d5c7a50 -r458989afcf25da4299995396ac4cb606f65a9ac6
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Activity.hbm.xml (.../Activity.hbm.xml) (revision 98e4c9f22a6124646416be2a0194ba4d3d5c7a50)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Activity.hbm.xml (.../Activity.hbm.xml) (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -12,76 +12,98 @@
-->
- @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"
- true
+
+
+
+ @hibernate.property column="id" length="11"
-
- @hibernate.property column="description" length="65535"
- true
+
+
+ @hibernate.property column="description" length="65535"
-
- @hibernate.property column="title" length="255"
- true
+
+
+ @hibernate.property column="title" length="255"
+
- @hibernate.property column="xcoord" length="11"
- true
+ @hibernate.property column="xcoord" length="11"
+
- @hibernate.property column="ycoord" length="11"
- true
+ @hibernate.property column="ycoord" length="11"
-
- @hibernate.property column="order_id" length="11"
- true
+
+
+ @hibernate.property column="order_id" length="11"
+
- @hibernate.property column="define_later_flag" length="4" not-null="true"
- true
+ @hibernate.property column="define_later_flag" length="4" not-null="true"
+
- @hibernate.property column="create_date_time" length="19" not-null="true"
- true
+ @hibernate.property column="create_date_time" length="19" not-null="true"
-
+
+
@hibernate.property column="offline_instructions" length="65535"
- true
+
+ @hibernate.property column="tool_content_id" length="20"
+
+
+
-
-
- @hibernate.many-to-one not-null="true" @hibernate.column name="grouping_id"
-
-
-
- @hibernate.many-to-one not-null="true" @hibernate.column name="learning_library_id"
+ @hibernate.many-to-one not-null="true"
+ @hibernate.column name="learning_library_id"
+
-
-
- @hibernate.many-to-one not-null="true" @hibernate.column name="learning_design_id"
-
+
+
+ @hibernate.many-to-one not-null="true"
+ @hibernate.column name="gate_activity_level_id"
+
+
+
+
+ @hibernate.set lazy="true" inverse="true" cascade="none"
+ @hibernate.collection-key column="activity_id"
+ @hibernate.collection-one-to-many class="com.lamsinternational.lams.lesson.ProgressCurrent"
+
+
+
+
+
+
+
+ @hibernate.set lazy="true" inverse="true" cascade="none"
+ @hibernate.collection-key column="activity_id"
+ @hibernate.collection-one-to-many class="com.lamsinternational.lams.lesson.ProgressCompleted"
+
+
+
+
+
-
- @hibernate.set lazy="true" inverse="true" cascade="none"
+
+ @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.Transition"
@@ -90,57 +112,65 @@
-
- @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.Transition"
+
+ @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.Transition"
-
- @hibernate.set lazy="true" inverse="true" cascade="none"
+
+ @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.collection-one-to-many class="com.lamsinternational.lams.learningdesign.Activity"
- @hibernate.many-to-one not-null="true" @hibernate.column name="parent_activity_id"
+ @hibernate.many-to-one not-null="true"
+ @hibernate.column name="parent_activity_id"
+
-
-
- @hibernate.many-to-one not-null="true" @hibernate.column name="learning_activity_type_id"
-
+
+
+ @hibernate.many-to-one not-null="true" @hibernate.column name="tool_id"
+
-
-
- @hibernate.many-to-one not-null="true" @hibernate.column name="gate_activity_level_id"
-
+
+
+ @hibernate.many-to-one not-null="true"
+ @hibernate.column name="learning_design_id"
+
+
-
-
- @hibernate.many-to-one not-null="true" @hibernate.column name="tool_content_id"
-
+
+
+ @hibernate.many-to-one not-null="true"
+ @hibernate.column name="grouping_id"
+
+
-
-
- @hibernate.many-to-one not-null="true" @hibernate.column name="tool_id"
-
-
+
+
+ @hibernate.many-to-one not-null="true"
+ @hibernate.column name="learning_activity_type_id"
+
+
+
-
-
+
+
@hibernate.class
public abstract
@@ -157,17 +187,16 @@
@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.property column="gate_start_date_time" length="19"
+ true
+
+
+ @hibernate.property column="gate_end_date_time" length="19"
+ true
+
@hibernate.class
@@ -199,5 +228,6 @@
@hibernate.class
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/ActivityType.hbm.xml
===================================================================
diff -u -r98e4c9f22a6124646416be2a0194ba4d3d5c7a50 -r458989afcf25da4299995396ac4cb606f65a9ac6
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/ActivityType.hbm.xml (.../ActivityType.hbm.xml) (revision 98e4c9f22a6124646416be2a0194ba4d3d5c7a50)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/ActivityType.hbm.xml (.../ActivityType.hbm.xml) (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -11,28 +11,75 @@
http://www.hibernate.org/
-->
-
- @hibernate.class table="lams_learning_activity_type"
+
+
+ @hibernate.class
+ table="lams_learning_activity_type"
+
true
-
- @hibernate.id generator-class="assigned" type="java.lang.Integer" column="learning_activity_type_id"
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Integer"
+ column="learning_activity_type_id"
+
+
+
-
- @hibernate.property column="description" length="255" not-null="true"
+
+
+ @hibernate.property
+ column="description"
+ length="255"
+ not-null="true"
+
-
- @hibernate.set lazy="true" inverse="true" cascade="none"
- @hibernate.collection-key column="learning_activity_type_id"
- @hibernate.collection-one-to-many class="com.lamsinternational.lams.learningdesign.Activity"
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="learning_activity_type_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.learningdesign.Activity"
-
-
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Group.hbm.xml
===================================================================
diff -u -r98e4c9f22a6124646416be2a0194ba4d3d5c7a50 -r458989afcf25da4299995396ac4cb606f65a9ac6
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Group.hbm.xml (.../Group.hbm.xml) (revision 98e4c9f22a6124646416be2a0194ba4d3d5c7a50)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/Group.hbm.xml (.../Group.hbm.xml) (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -54,6 +54,58 @@
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="group_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.lesson.UserGroup"
+
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="group_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.tool.ToolSession"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="grouping_type_id"
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="class_grouping_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.lesson.Lesson"
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_grouping_type"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Integer"
+ column="grouping_type_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="128"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="grouping_type_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.learningdesign.Grouping"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/LearningDesign.hbm.xml
===================================================================
diff -u -r98e4c9f22a6124646416be2a0194ba4d3d5c7a50 -r458989afcf25da4299995396ac4cb606f65a9ac6
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/LearningDesign.hbm.xml (.../LearningDesign.hbm.xml) (revision 98e4c9f22a6124646416be2a0194ba4d3d5c7a50)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/learningdesign/LearningDesign.hbm.xml (.../LearningDesign.hbm.xml) (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -118,6 +118,7 @@
not-null="true"
length="4"
>
+ true
@hibernate.property
column="read_only_flag"
@@ -242,6 +243,19 @@
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="user_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.lesson.Lesson"
+
+
+
+
+
+
-
-
-
- @hibernate.many-to-one
- not-null="true"
- @hibernate.column name="learning_design_id"
-
-
-
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="learning_design_id"
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LearnerProgress.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LearnerProgress.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LearnerProgress.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_learner_progress"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Long"
+ column="learner_progress_id"
+
+
+
+
+
+
+
+
+
+
+
+
+ @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.many-to-one
+ not-null="true"
+ @hibernate.column name="user_id"
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="lesson_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/Lesson.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/Lesson.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/Lesson.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,200 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_lesson"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Long"
+ column="lesson_id"
+
+
+
+
+
+
+
+
+ @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"
+
+
+
+
+
+
+ @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.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="lesson_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.lesson.LessonLearner"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="class_grouping_id"
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="organisation_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LessonLearner.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LessonLearner.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LessonLearner.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_lesson_learner"
+
+ true
+
+
+ @hibernate.id generator-class="assigned"
+
+
+ @hibernate.property column="lesson_id" length="20">
+
+
+
+ @hibernate.property column="user_id" length="20">
+
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one not-null="true" update="false" insert="false"
+ @hibernate.column name="user_id"
+
+
+
+
+
+ @hibernate.many-to-one not-null="true" update="false" insert="false"
+ @hibernate.column name="lesson_id"
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LessonState.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LessonState.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/LessonState.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_lesson_state"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Integer"
+ column="lams_lesson_state_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="255"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="lams_lesson_state_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.lesson.Lesson"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/ProgressCompleted.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/ProgressCompleted.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/ProgressCompleted.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_progress_completed"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+
+
+
+ @hibernate.property
+ column="learner_progress_id"
+ length="20"
+
+
+
+
+
+ @hibernate.property
+ column="activity_id"
+ length="20"
+
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ update="false"
+ insert="false"
+
+
+ @hibernate.column
+ name="learner_progress_id"
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ update="false"
+ insert="false"
+
+
+ @hibernate.column
+ name="activity_id"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/ProgressCurrent.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/ProgressCurrent.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/ProgressCurrent.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_progress_current"
+
+ true
+
+
+ @hibernate.id generator-class="assigned"
+
+ @hibernate.property column="learner_progress_id" length="20"
+
+
+ @hibernate.property column="activity_id" length="20"
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one update="false" insert="false"
+ @hibernate.column name="learner_progress_id"
+
+
+
+
+
+ @hibernate.many-to-one update="false" insert="false"
+ @hibernate.column name="activity_id"
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserGroup.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserGroup.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserGroup.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_user_group"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+
+
+
+ @hibernate.property
+ column="user_id"
+ length="20"
+
+
+
+
+ @hibernate.property
+ column="group_id"
+ length="20"
+
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ update="false"
+ insert="false"
+
+
+ @hibernate.column
+ name="user_id"
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ update="false"
+ insert="false"
+
+
+ @hibernate.column
+ name="group_id"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserToolSession.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserToolSession.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserToolSession.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_user_tool_session"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+
+
+
+ @hibernate.property
+ column="tool_session_id"
+ length="20"
+
+
+
+
+ @hibernate.property
+ column="user_id"
+ length="20"
+
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ update="false"
+ insert="false"
+
+
+ @hibernate.column
+ name="user_id"
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ update="false"
+ insert="false"
+
+
+ @hibernate.column
+ name="tool_session_id"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="user_tool_session_state_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserToolSessionState.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserToolSessionState.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/lesson/UserToolSessionState.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_user_tool_session_state"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Integer"
+ column="user_tool_session_state_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="255"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="user_tool_session_state_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.lesson.UserToolSession"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/Tool.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/Tool.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/Tool.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_tool"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Long"
+ column="tool_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="learner_url"
+ length="65535"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="supports_grouping_flag"
+ length="1"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="author_url"
+ length="65535"
+
+
+
+
+ @hibernate.property
+ column="supports_define_later_flag"
+ length="1"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="define_later_url"
+ length="65535"
+
+
+
+
+ @hibernate.property
+ column="default_tool_content_id"
+ length="20"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="tool_signature"
+ length="64"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="tool_display_name"
+ length="255"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="65535"
+
+
+
+
+ @hibernate.property
+ column="class_name"
+ length="65535"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="export_portfolio_url"
+ length="65535"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="tool_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.learningdesign.Activity"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolSession.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolSession.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolSession.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_tool_session"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Long"
+ column="tool_session_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="activity_id"
+ length="20"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="tool_session_key"
+ length="20"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="create_date_time"
+ length="19"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="tool_session_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.lesson.UserToolSession"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="group_id"
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="tool_session_state_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolSessionState.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolSessionState.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/com/lamsinternational/lams/tool/ToolSessionState.hbm.xml (revision 458989afcf25da4299995396ac4cb606f65a9ac6)
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_tool_session_state"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="assigned"
+ type="java.lang.Integer"
+ column="tool_session_state_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="255"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="tool_session_state_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.tool.ToolSession"
+
+
+
+
+
+
+
+
+