ora-02289问题解决

<id name="id" type="java.lang.Long">
            <column name="ID" precision="20" scale="0" />
            <generator class="native" />
</id>
好像Hibernate3默认为所有使用Sequence的ID项都关联一个名为'hibernate_sequence'的Sequence.
你只要在oracle中创建这个Sequence就行:


create sequence hibernate_sequence start with 1 increment by 1;

你可能感兴趣的:(oracle,Hibernate)