mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
added Mindamp.hbm.xml
This commit is contained in:
parent
1883210837
commit
b6b0f460de
@ -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