📄 c0f520cfbd2b001d10dcc9e30c9e2239
字号:
<?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="User" name="com.qrsx.qrsxcrm.model.User">
<!--id的产生方式是uuid.hex-->
<id name="id" column="id">
<generator class="uuid.hex"/>
</id>
<!-- 映射个人计划 -->
<set name="dailys" inverse="true" outer-join="false" lazy="false">
<key column="userId" />
<one-to-many class="com.qrsx.qrsxcrm.model.Daily" />
</set>
<!-- 映射公司任务 -->
<set name="companyTasks" inverse="true" outer-join="false" lazy="false">
<key column="userId" />
<one-to-many class="com.qrsx.qrsxcrm.model.CompanyTask" />
</set>
<!-- 映射公司公告 -->
<set name="announcements" inverse="true" outer-join="false" lazy="false">
<key column="userId" />
<one-to-many class="com.qrsx.qrsxcrm.model.Announcement" />
</set>
<!-- 映射职工 -->
<many-to-one name="employee"
class="com.qrsx.qrsxcrm.model.Employee"
column="employeeId"
cascade="save-update"
unique="true">
</many-to-one>
<!--映射用户角色-->
<many-to-one name="role"
class="com.qrsx.qrsxcrm.model.Role"
column="roleId"
cascade="save-update"
unique="true">
</many-to-one>
<!--映射用户姓名-->
<property name="userName" column="userName" not-null="false"/>
<!--映射用户密码-->
<property name="password" column="password" not-null="false"/>
<!--映射用户备注-->
<property name="remark" column="remark" not-null="false"/>
</class>
</hibernate-mapping>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -