现在的位置: 首页 > 综合 > 正文

Spring引用外部文件生成主键配置

2013年01月21日 ⁄ 综合 ⁄ 共 272字 ⁄ 字号 评论关闭

一、*.hbm.xml配置

<hibernate-mapping>
    <class name="com.trendcom.org.model.OrgUserR" table="ORG_USER_R">
        <id name="orgUserId" type="java.lang.Long">
            <column name="ORG_USER_ID" precision="22" scale="0" />
            <generator class="assigned" />
        </id>

       ......

二、

抱歉!评论已关闭.