为了账号安全,请及时绑定邮箱和手机立即绑定

我是用的oracle数据库,级联删除时错

Exception occurred during processing request: could not execute statement; SQL [n/a]; constraint [SYSTEM.FK_O681PHLIAUJPVDBLO1VO2F6SF]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement

<set name="employee"  cascade="all" inverse="true" >

<key foreign-key="did"/>

<one-to-many class="com.ssh.entry.Employee" />

</set>


正在回答

1 回答

<key foreign-key="did"/> 换成<key column="did">试试

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

我是用的oracle数据库,级联删除时错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信