4026e7751c2d001d197ee5d5bdcefda6

来自「客户关系管理系统主要管理新老客户的一些信息并可以发现潜在客户」· 代码 · 共 38 行

TXT
38
字号
<?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="Service" name="com.qrsx.qrsxcrm.model.Sercive">
  
  	<!--id的产生方式是uuid.hex-->
    <id name="id" column="id">
      <generator class="uuid.hex"/>
    </id>
    
     <!-- 映射服务所对应的客户 -->
    <one-to-one name="client" 
		      class="com.qrsx.qrsxcrm.model.Client" 
		      outer-join="false" constrained="true" />
		      
	<!-- 映射服务实施人 -->
    <one-to-one name="employee" 
		      class="com.qrsx.qrsxcrm.model.Employee" 
		      outer-join="false" constrained="true" />


	<!--映射服务类型-->
	<many-to-one name="serviceType" column="serviceTypeId" 
             class="com.qrsx.qrsxcrm.model.ServiceType" 
             fetch="select" />
    
     <!--映射服务开始时间-->
    <property name="beginTime" column="beginTime" not-null="false"/>
     <!--映射服务结束时间-->
    <property name="endTime" column="endTime" not-null="false"/>
     <!--映射服务状态-->
    <property name="state" column="state" not-null="false"/>
     <!--映射服务总结-->
    <property name="remark" column="remark" not-null="false"/>
     
  </class>
</hibernate-mapping>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?