mirror of
https://github.com/wisemapping/wisemapping-open-source.git
synced 2025-04-19 02:05:32 +08:00
36 lines
1.4 KiB
XML
36 lines
1.4 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE hibernate-mapping PUBLIC
|
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
|
|
|
<hibernate-mapping>
|
|
|
|
<class name="com.wisemapping.model.Mindmap" table="MINDMAP">
|
|
<id name="id">
|
|
<generator class="increment"/>
|
|
</id>
|
|
<property name="title"/>
|
|
<property name="public"/>
|
|
<property name="description"/>
|
|
<property name="zippedXml" column="XML" lazy="true"/>
|
|
<property name="lastModificationTime" column="edition_date"/>
|
|
<property name="creationTime" column="creation_date"/>
|
|
<property name="tags" column="tags"/>
|
|
<many-to-one name="creator" column="creator_id" unique="true" not-null="false" lazy="proxy"/>
|
|
<many-to-one name="lastEditor" column="last_editor_id" unique="false" not-null="true" lazy="proxy"/>
|
|
|
|
<set name="collaborations"
|
|
cascade="all,delete-orphan,save-update"
|
|
inverse="true">
|
|
<key column="mindmap_id" not-null="true"/>
|
|
<one-to-many class="com.wisemapping.model.Collaboration"/>
|
|
</set>
|
|
|
|
<set name = "labels"
|
|
table="R_LABEL_MINDMAP" order-by="label_id" fetch="select" cascade="none">
|
|
<key column="mindmap_id" not-null="true"/>
|
|
<many-to-many column="label_id" class="com.wisemapping.model.Label"/>
|
|
</set>
|
|
</class>
|
|
|
|
</hibernate-mapping> |