forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBranchForm.hbm.xml
More file actions
22 lines (21 loc) · 864 Bytes
/
Copy pathBranchForm.hbm.xml
File metadata and controls
22 lines (21 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.actionForm.BranchForm" table="tb_branch">
<id name="id" column="id" type="int">
<generator class="increment"/>
</id>
<property name="name" column="name" type="string" not-null="true"/>
<property name="tel" column="tel" type="string"/>
<property name="memo" column="memo" type="string"/>
<set name="getuse" lazy="false" cascade="all" inverse="true">
<key column="branchid"/>
<one-to-many class="com.actionForm.GetUseForm"/>
</set>
<set name="damage" lazy="false" cascade="all" inverse="true">
<key column="branchid"/>
<one-to-many class="com.actionForm.DamageForm"/>
</set>
</class>
</hibernate-mapping>