日期:2014-05-18 浏览次数:20807 次
<hibernate-mapping> <class name="com.rj.vo.XaOrg" table="XA_ORG" schema="RJ" lazy="false"> <id name="orgid" type="java.lang.String"> <column name="ORGID" length="8" /> <generator class="sequence"></generator> </id> <property name="orgname" type="java.lang.String"> <column name="ORGNAME" length="50" /> </property> <property name="qrycode" type="java.lang.String"> <column name="QRYCODE" length="100" /> </property> </class> </hibernate-mapping>
<generator class="sequence"> <param name="sequence">your_sequence</param> </generator>
------解决方案--------------------
就如楼上说的
------解决方案--------------------
<id name="orgid" type="java.lang.String" column="ORGID">
<generator class="sequence">yoursequence</generator>
</id>
------解决方案--------------------
http://www.xrss.cn/Dev/JAVA/200762714441.Html没看明白什么意思,看看是不是这个文章的意思!
------解决方案--------------------
顶了