问答详情
源自:4-4 删除员工及系统中的问题处理

我是用的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>


提问者:w972779876 2016-12-23 12:05

个回答

  • 慕粉0723135597
    2017-07-07 20:15:38

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