Code:
SQL> desc rkxx_xh;
Name Type Nullable Default Comments
---- ---------- -------- ------- --------
RKXH NUMBER(10)
JMZH CHAR(18) Y
Code:
<id length="10" name="v_RKXH" type="java.lang.Integer" unsaved-value="any">
<column length="10" name="RKXH" not-null="true" sql-type="NUMBER(10)"/>
<generator class="sequence">
<param name="sequence">RKXX_XH_RKXH_SEQ</param>
</generator>
</id>
when i run the hibernate ,it tell me the error:
net.sf.hibernate.MappingException: could not instantiate id generator
but the sequence of oracle run ok!
SQL> select rkxx_xh_rkxh_seq.nextval from dual;
NEXTVAL
----------
67077434
thanks a lot!