oracle创建序列步骤到hibernate的插入操作,那位前辈能说说,我创建的更新和查询没错,
插入失败,那位前辈从oracle->hibernate的重要步骤能说说,谢谢
看看这个贴
http://topic.csdn.net/u/20110621/10/2f88e052-00e9-4e9b-b655-61eb33060ebb?seed=1138912282&r=73961994
------解决方案--------------------------------------------------------
配置文件有错误,楼主好使了求结贴啊
<hibernate-mapping>
<class name="cn.ac.sict.ietd.orm.FlowFormControler" table="FLOW_FORM_CONTROLER" schema="EROA">
<id name="id" type="java.lang.Long">
<column name="ID" precision="10" scale="0" />
<generator class="sequence">
<param name="sequence">S_FLOW_FORM_CONTROLER</param>
</generator>
</id>
<property name="zdz" type="java.lang.String">
<column name="ZDZ" length="10" />
</property>
</class>
</hibernate-mapping>
需要映射成sequence然后下边写上你创建的sequence的名字,我看你映射成native了,那样是不好使的
------解决方案--------------------------------------------------------
怎么个情况?
怎么搞到这里了?