mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
added Mindamp.hbm.xml
This commit is contained in:
parent
03bb887907
commit
6a673d187b
@ -0,0 +1,30 @@
|
|||||||
|
<?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>
|
||||||
|
|
||||||
|
<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"/>
|
||||||
|
<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"
|
||||||
|
inverse="true">
|
||||||
|
<key column="MINDMAP_ID" not-null="true"/>
|
||||||
|
<one-to-many class="com.wisemapping.model.Collaboration"/>
|
||||||
|
</set>
|
||||||
|
</class>
|
||||||
|
|
||||||
|
</hibernate-mapping>
|
Loading…
Reference in New Issue
Block a user