📄 80d1a249612c001d1b27e18734f52652
字号:
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class lazy="false" table="Order" name="com.qrsx.qrsxcrm.model.Order">
<!--id的产生方式是uuid.hex-->
<id name="id" column="id">
<generator class="uuid.hex"/>
</id>
<!--映射订单创建者-->
<many-to-one name="user"
class="com.qrsx.qrsxcrm.model.User"
column="userId"
cascade="save-update"
fetch="select" />
<!-- 映射订单所对应的客户 一对一 -->
<many-to-one name="client"
class="com.qrsx.qrsxcrm.model.Client"
column="clientId"
cascade="save-update"
unique="true">
</many-to-one>
<!-- 映射订单负责人 一对一 -->
<many-to-one name="employee"
class="com.qrsx.qrsxcrm.model.Employee"
column="employeeId"
cascade="save-update"
unique="true">
</many-to-one>
<!-- 映射订单明细 -->
<set name="lists" inverse="true" outer-join="false" lazy="false">
<key column="orderId" />
<one-to-many class="com.qrsx.qrsxcrm.model.List" />
</set>
<!--映射订单编号-->
<property name="orderId" column="orderId" not-null="false"/>
<!--映射订单创建日期-->
<property name="createDate" column="createDate" not-null="false"/>
<!--映射订单付款日期-->
<property name="payDate" column="payDate" not-null="false"/>
<!--映射订单状态-->
<property name="state" column="state" not-null="false"/>
</class>
</hibernate-mapping>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -