Hibernate配置文件映射java数据基本类型

<?xml version="1.0"?><hibernate-mapping package="com.web.core.datasource.model"><class name="SysUser" table="SYS_USER" lazy="true"><!-- persist common fields START --><id name="databaseID" type="long" column="database_id" unsaved-value="null" access="field"><generator class="native"></generator></id><!-- transmit related entity. START --><version name="version" column="version" type="long" unsaved-value="negative" access="field"></version><property name="createdTime" type="timestamp" column="created_time"></property><property name="lastModifyTime" type="timestamp" column="last_modify_time"></property><!-- updated by dataplatform --><property name="lastUpLoadedTime" type="timestamp" column="last_uploaded_time" update="false"></property><!-- updated by dataplatform --><property name="lastOverwriteTime" type="timestamp" column="last_overwrite_time" update="false"></property><property name="copyVersion" type="long" column="copy_version"></property><property name="dataCreator" type="string" length="50" column="data_creator"></property><property name="dataOwner" type="string" length="50" column="data_owner"></property><property name="branchID" type="string" length="50" column="branch_id"></property><property name="transmitStatus" type="integer" column="transmit_status"></property><property name="targetBranch" type="string" length="50" column="target_branch"></property><!-- transmit related entity. END --><property name="userID" type="string" column="user_id" length="255" unique="true" not-null="true"></property><property name="userName" type="string" column="user_name" length="255"></property><property name="password" type="string" column="password" length="255"></property><property name="isAdminUser" type="boolean" column="is_admin"></property><property name="lastLoginTime" type="timestamp" column="last_login_date"></property><property name="amount" type="double" column="amount"></property><property name="rank" type="integer" column="rank"></property><property name="orderDate" type="java.util.Date" column="order_date" update="true" not-null="true" access="field"></property></class></hibernate-mapping>

你可能感兴趣的:(Hibernate)