Spring开发--Bean配置实例讲解

有一个这样的Bean文件:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
                                   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
 <class catalog="bcatest"
  name="com.hp.ts.bca.emergencyInformationReport.entity.EmergencyInfoFirstExe" table="emergency_info_first_exe">
  <id name="id" type="java.lang.Integer">
   <column name="ID" not-null="true"/>
   <generator class="com.hp.util.hibernate.AutoIncNumberWithStep"/>
  </id>
  <property generated="never" lazy="false" name="name" type="java.lang.String">
   <column length="256" name="NAME" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="occurtime" type="java.util.Date">
   <column length="19" name="OCCUR_TIME" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="sendTime" type="java.util.Date">
   <column length="19" name="SEND_TIME" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="address" type="java.lang.String">
   <column length="256" name="ADDRESS" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="processId" type="java.lang.Integer">
   <column name="PROCESS_ID" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="content" type="java.lang.String">
   <column length="1000" name="CONTENT" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="damage" type="java.lang.String">
   <column length="1000" name="DAMAGE" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="casualties" type="java.lang.String">
   <column length="1000" name="CASUALTIES" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="itRange" type="java.lang.String">
   <column length="1000" name="IT_RANGE" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="emergencyMeasure" type="java.lang.String">
   <column length="1000" name="EMERGENCY_MEASURE" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="level" type="java.lang.Integer">
   <column name="LEVEL" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="deleteFlag" type="java.lang.Integer">
   <column name="DELETEFLAG" not-null="false"/>
  </property>
  <property generated="never" lazy="false" name="recovery" type="java.lang.String">
   <column length="1000" name="RECOVERY" not-null="false"/>
  </property>
  <set cascade="all,delete-orphan" inverse="true" lazy="false"
   name="businessModules" sort="unsorted" table="emergency_info_first_exe_business">
   <key column="EMERGENCY_INFO_FIRST_EXE_ID"/>
   <one-to-many class="com.hp.ts.bca.emergencyInformationReport.entity.EmergencyInfoFirstExeBusiness"/>
  </set>
  <set cascade="all,delete-orphan" inverse="true" lazy="false"
   name="areaes" sort="unsorted" table="emergency_info_first_exe_area">
   <key column="EMERGENCY_INFO_FIRST_EXE_ID"/>
   <one-to-many class="com.hp.ts.bca.emergencyInformationReport.entity.EmergencyInfoFirstExeArea"/>
  </set>
  <set cascade="all,delete-orphan" inverse="true" lazy="false"
   name="relatedMembers" sort="unsorted" table="EMERGENCY_INFO_CALLED_MENBER">
   <key column="EMERGENCY_INFO_FIRST_EXE_ID"/>
   <one-to-many class="com.hp.ts.bca.emergencyInformationReport.entity.EmergencyInfoCalledMenber"/>
  </set>
 </class>
</hibernate-mapping>

你可能感兴趣的:(Spring开发--Bean配置实例讲解)