2009-06-07 18:59:43 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE hibernate-mapping PUBLIC
|
|
|
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
|
|
|
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
|
|
|
|
|
|
|
<hibernate-mapping>
|
|
|
|
|
2012-06-09 22:55:55 -03:00
|
|
|
<class name="com.wisemapping.model.Collaboration" table="COLLABORATION">
|
2009-06-07 18:59:43 +00:00
|
|
|
<id name="id">
|
|
|
|
<generator class="increment"/>
|
|
|
|
</id>
|
|
|
|
|
|
|
|
<property name="roleId" column="ROLE_ID" unique="true" not-null="true"/>
|
2012-02-21 14:22:43 -03:00
|
|
|
|
|
|
|
<!-- Read-only association property -->
|
2009-06-07 18:59:43 +00:00
|
|
|
<many-to-one name="mindMap"
|
2012-02-21 14:22:43 -03:00
|
|
|
column="MINDMAP_ID"
|
|
|
|
not-null="true"
|
|
|
|
class="com.wisemapping.model.MindMap"
|
2012-06-09 22:55:55 -03:00
|
|
|
/>
|
2009-06-07 18:59:43 +00:00
|
|
|
|
2012-02-21 14:22:43 -03:00
|
|
|
<many-to-one name="collaborator"
|
|
|
|
column="COLABORATOR_ID"
|
|
|
|
not-null="true"
|
|
|
|
class="com.wisemapping.model.Collaborator"
|
|
|
|
/>
|
2012-06-09 22:55:55 -03:00
|
|
|
|
|
|
|
|
|
|
|
<many-to-one name="collaborationProperties" class="com.wisemapping.model.CollaborationProperties"
|
|
|
|
column="properties_id" not-null="false" cascade="all" unique="true"/>
|
|
|
|
|
2009-06-07 18:59:43 +00:00
|
|
|
</class>
|
|
|
|
|
|
|
|
</hibernate-mapping>
|