Pogress SQL fix.

This commit is contained in:
Paulo Gustavo Veiga 2012-11-24 14:16:49 -03:00
parent b9748ca23a
commit 46264991b9
5 changed files with 8 additions and 8 deletions

View File

@ -11,7 +11,7 @@
</id>
<property name="loginDate" column="login_Date"/>
<many-to-one name="user"
column="USER_ID"
column="user_id"
not-null="true"
class="com.wisemapping.model.User"
/>

View File

@ -10,17 +10,17 @@
<generator class="increment"/>
</id>
<property name="roleId" column="ROLE_ID" unique="true" not-null="true"/>
<property name="roleId" column="role_id" unique="true" not-null="true"/>
<!-- Read-only association property -->
<many-to-one name="mindMap"
column="MINDMAP_ID"
column="mindmap_id"
not-null="true"
class="com.wisemapping.model.Mindmap"
/>
<many-to-one name="collaborator"
column="COLABORATOR_ID"
column="colaborator_id"
not-null="true"
class="com.wisemapping.model.Collaborator"
/>

View File

@ -15,12 +15,12 @@
<set name="collaborations"
cascade="all, delete-orphan"
inverse="true">
<key column="COLABORATOR_ID" not-null="true"/>
<key column="colaborator_id" not-null="true"/>
<one-to-many class="com.wisemapping.model.Collaboration"/>
</set>
<joined-subclass name="com.wisemapping.model.User" table="USER">
<key column="COLABORATOR_ID"/>
<key column="colaborator_id"/>
<property name="firstname"/>
<property name="lastname"/>
<property name="password"/>

View File

@ -11,7 +11,7 @@
</id>
<property name="mindmapId" column="mindmap_id"/>
<property name="xml" column="XML"/>
<property name="xml" column="xml"/>
<property name="creationTime" column="creation_date"/>
<many-to-one name="editor" column="editor_id" unique="false" not-null="false" lazy="proxy"/>
</class>

View File

@ -22,7 +22,7 @@
<set name="collaborations"
cascade="all,delete-orphan,save-update"
inverse="true">
<key column="MINDMAP_ID" not-null="true"/>
<key column="mindmap_id" not-null="true"/>
<one-to-many class="com.wisemapping.model.Collaboration"/>
</set>
</class>