删除和更新不了呢,为什么呢?
删除的时候前台显示这个错:
type Exception report
message attempt to create delete event with null entity
description The server encountered an internal error that prevented it from fulfilling this request.
后台提示这个错:ERROR - Exception occurred during processing request: attempt to create delete event with null entity
java.lang.IllegalArgumentException: attempt to create delete event with null entity
更新的时候提示这个错:
type Exception report
message Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1