HTTP Status 500 - could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
这是因为配置的时候没有在hbm.xml中写cascade=“delete"。正确写法:
这是因为配置的时候没有在hbm.xml中写cascade=“delete"。正确写法: