Index: lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethod.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethod.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethod.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_authentication_method"
+ proxy="com.lamsinternational.lams.usermanagement.model.AuthenticationMethod"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="authentication_method_id"
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="authentication_method_type_id"
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="authentication_method_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.User"
+
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="authentication_method_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.AuthenticationMethodParameter"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethodParameter.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethodParameter.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethodParameter.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_authentication_method_parameter"
+ proxy="com.lamsinternational.lams.usermanagement.model.AuthenticationMethodParameter"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="authentication_parameter_id"
+
+
+
+
+
+
+
+ true
+
+ @hibernate.property
+ column="name"
+ length="128"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="value"
+ length="255"
+
+
+
+
+
+
+
+ true
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="authentication_method_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethodType.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethodType.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/AuthenticationMethodType.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_authentication_method_type"
+ proxy="com.lamsinternational.lams.usermanagement.model.AuthenticationMethodType"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="authentication_method_type_id"
+
+
+
+ true
+
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="64"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="authentication_method_type_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.AuthenticationMethod"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/Organisation.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/Organisation.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/Organisation.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_organisation"
+ proxy="com.lamsinternational.lams.usermanagement.model.Organisation"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="organisation_id"
+
+
+
+ true
+
+
+
+
+
+ @hibernate.property
+ column="name"
+ length="250"
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="250"
+
+
+
+
+ @hibernate.property
+ column="create_date"
+ length="19"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="workspace_id"
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="organisation_type_id"
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="organisation_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.UserOrganisation"
+
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="parent_folder_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.Organisation"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ @hibernate.column name="parent_folder_id"
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/OrganisationType.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/OrganisationType.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/OrganisationType.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_organisation_type"
+ proxy="com.lamsinternational.lams.usermanagement.model.OrganisationType"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="organisation_type_id"
+
+
+
+ true
+
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="64"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="organisation_type_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.Organisation"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/Role.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/Role.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/Role.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_role"
+ proxy="com.lamsinternational.lams.usermanagement.model.Role"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="role_id"
+
+
+
+
+
+
+
+ true
+
+ @hibernate.property
+ column="name"
+ length="64"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="description"
+ length="65535"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="role_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.UserOrganisationRole"
+
+
+
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/User.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/User.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/User.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,324 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_user"
+ proxy="com.lamsinternational.lams.usermanagement.model.User"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="user_id"
+
+
+
+
+
+
+
+ true
+
+ @hibernate.property
+ column="login"
+ length="20"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="password"
+ length="50"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="title"
+ length="32"
+
+
+
+
+ @hibernate.property
+ column="first_name"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="last_name"
+ length="128"
+
+
+
+
+ @hibernate.property
+ column="address_line_1"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="address_line_2"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="address_line_3"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="city"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="state"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="country"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="day_phone"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="evening_phone"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="mobile_phone"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="fax"
+ length="64"
+
+
+
+
+ @hibernate.property
+ column="email"
+ length="128"
+
+
+
+
+ @hibernate.property
+ column="disabled_flag"
+ length="1"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="create_date"
+ length="19"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="workspace_id"
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="user_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.UserOrganisation"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="authentication_method_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/UserOrganisation.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/UserOrganisation.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/UserOrganisation.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_user_organisation"
+ proxy="com.lamsinternational.lams.usermanagement.model.UserOrganisation"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="user_organisation_id"
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="user_id"
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="user_organisation_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.UserOrganisationRole"
+
+
+
+
+
+
+
+
+ true
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="organisation_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/UserOrganisationRole.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/UserOrganisationRole.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/UserOrganisationRole.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_user_organisation_role"
+ proxy="com.lamsinternational.lams.usermanagement.model.UserOrganisationRole"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="user_organisation_role_id"
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="user_organisation_id"
+
+
+
+
+
+ true
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="role_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/Workspace.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/Workspace.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/Workspace.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_workspace"
+ proxy="com.lamsinternational.lams.usermanagement.model.Workspace"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="workspace_id"
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="workspace_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.User"
+
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="workspace_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.Organisation"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ not-null="true"
+ @hibernate.column name="root_folder_id"
+
+
+
+
+
+
Index: lams_common/conf/hibernate/mappings/usermanagement/WorkspaceFolder.hbm.xml
===================================================================
diff -u
--- lams_common/conf/hibernate/mappings/usermanagement/WorkspaceFolder.hbm.xml (revision 0)
+++ lams_common/conf/hibernate/mappings/usermanagement/WorkspaceFolder.hbm.xml (revision 6068cdbbfae51dc5bf1a0283ed408d4cca31677c)
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+ @hibernate.class
+ table="lams_workspace_folder"
+ proxy="com.lamsinternational.lams.usermanagement.model.WorkspaceFolder"
+
+ true
+
+
+
+ @hibernate.id
+ generator-class="native"
+ type="java.lang.Integer"
+ column="workspace_folder_id"
+
+
+
+
+
+
+
+
+ @hibernate.property
+ column="name"
+ length="64"
+ not-null="true"
+
+
+
+
+ @hibernate.property
+ column="workspace_id"
+ length="11"
+ not-null="true"
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="root_folder_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.Workspace"
+
+
+
+
+
+
+
+
+
+ @hibernate.set
+ lazy="true"
+ inverse="true"
+ cascade="none"
+
+ @hibernate.collection-key
+ column="parent_folder_id"
+
+ @hibernate.collection-one-to-many
+ class="com.lamsinternational.lams.usermanagement.model.WorkspaceFolder"
+
+
+
+
+
+
+
+
+
+ @hibernate.many-to-one
+ @hibernate.column name="parent_folder_id"
+
+
+
+
+
+