<?xml version="1.0" encoding="UTF-8"?> <hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd"> <class entity-name="com.xyst.dinas.transport.datamodel.TransportVehicle" table="xyst_dinas_transport_vehicle" optimistic-lock="version"> <tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer" /> <id name="id" type="uuid-binary" column="id" length="16"> <generator class="assigned" /> </id> <version name="version" type="int" column="version"/> <property name="createTime" type="timestamp" not-null="false"> <column name="create_time"/> </property> <many-to-one name="creator" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="creator_id" not-null="false"/> </many-to-one> <property name="modifyTime" type="timestamp" not-null="false"> <column name="modify_time"/> </property> <many-to-one name="modifier" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="modifier_id" not-null="false"/> </many-to-one> <property name="billState" type="nstring" not-null="false"> <column name="bill_state" length="100"/> </property> <many-to-one name="bizProcess" entity-name="com.beecode.bap.workflow.datamodel.BizProcess" fetch="select"> <column name="biz_process_id" not-null="false"/> </many-to-one> <property name="billCode" type="nstring" not-null="false"> <column name="bill_code" length="200"/> </property> <property name="discard" type="boolean" not-null="false"> <column name="discard"/> </property> <property name="del" type="boolean" not-null="false"> <column name="del"/> </property> <property name="approveState" type="integer" not-null="false"> <column name="approve_state"/> </property> <many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select"> <column name="regional_company" not-null="false"> <comment>所属组织机构</comment> </column> </many-to-one> <many-to-one name="transportCompany" entity-name="com.xyst.dinas.transport.datamodel.TransportCompany" fetch="select"> <column name="transport_company_id" not-null="false"> <comment>所属运输公司</comment> </column> </many-to-one> <property name="plateNumber" type="nstring" not-null="false"> <column name="plate_number" length="100"> <comment>车牌号</comment> </column> </property> <property name="brand" type="nstring" not-null="false"> <column name="brand" length="100"> <comment>品牌</comment> </column> </property> <property name="model" type="nstring" not-null="false"> <column name="model" length="100"> <comment>型号</comment> </column> </property> <property name="carWeight" type="big_decimal" not-null="false"> <column name="car_weight" precision="12" scale="4"> <comment>总重量</comment> </column> </property> <property name="deadWeight" type="big_decimal" not-null="false"> <column name="dead_weight" precision="12" scale="4"> <comment>装载重量</comment> </column> </property> <property name="deviceNumber" type="nstring" length="80" not-null="false"> <column name="device_number"> <comment>设备序列号</comment> </column> </property> <property name="account" type="nstring" not-null="false"> <column name="account"> <comment>账号</comment> </column> </property> <property name="accountPassword" type="nstring" not-null="false"> <column name="account_password"> <comment>账户的密码</comment> </column> </property> </class> </hibernate-mapping>