mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX: softDeleting an entity calls now preUpdate/postUpdate
This commit is contained in:
@@ -787,10 +787,14 @@ public final class PersistRequestBean<T> extends PersistRequest implements BeanP
|
||||
controller.postInsert(this);
|
||||
break;
|
||||
case UPDATE:
|
||||
case SOFT_DELETE:
|
||||
/*
|
||||
* In the previous version, in case SOFT_DELETE the method controller.postDelete was called. However,
|
||||
* this lead to an inconsistent situation, because first controller.preUpdate is called.
|
||||
*/
|
||||
controller.postUpdate(this);
|
||||
break;
|
||||
case DELETE:
|
||||
case SOFT_DELETE:
|
||||
controller.postDelete(this);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user