Simplify security model.

This commit is contained in:
Paulo Gustavo Veiga
2012-06-12 11:23:47 -03:00
parent 249080cc20
commit cbdd6dd146
25 changed files with 101 additions and 166 deletions

View File

@@ -13,11 +13,11 @@
<property name="creationDate" column="creation_date"/>
<set name="collaborations"
cascade="all, delete-orphan"
inverse="true">
cascade="all, delete-orphan"
inverse="true">
<key column="COLABORATOR_ID" not-null="true"/>
<one-to-many class="com.wisemapping.model.Collaboration"/>
</set>
</set>
<joined-subclass name="com.wisemapping.model.User" table="USER">
<key column="COLABORATOR_ID"/>
@@ -30,7 +30,7 @@
<property name="allowSendEmail"/>
<set name="tags" table="TAG">
<key column="user_id"/>
<element column="name" type="string"/>
<element column="name" type="string"/>
</set>
</joined-subclass>
</class>

View File

@@ -16,11 +16,10 @@
<property name="lastModifierUser" column="last_editor"/>
<property name="lastModificationTime" column="edition_date"/>
<property name="creationTime" column="creation_date"/>
<property name="creator" column="creator_user"/>
<property name="tags" column="tags"/>
<property name="properties" column="editor_properties"/>
<many-to-one name="owner" column="owner_id" unique="true" not-null="true"/>
<many-to-one name="creator" column="creator_id" unique="true" not-null="true"/>
<set name="collaborations"
cascade="all,delete-orphan"