NEW: method ebean_recalc notifies the bean to perform additional computations

This commit is contained in:
Roland Praml
2018-03-01 19:54:03 +01:00
parent 9e2ddc9f8c
commit f140795423
2 changed files with 6 additions and 0 deletions
@@ -96,4 +96,9 @@ public interface EntityBean extends Serializable {
*/
Object _ebean_getFieldIntercept(int fieldIndex);
/**
* Recalcs the bean. This is invoked by PersistRequestBean.
*/
default void _ebean_recalc() {};
}
@@ -156,6 +156,7 @@ public final class PersistRequestBean<T> extends PersistRequest implements BeanP
super(server, t, persistExecute);
this.entityBean = (EntityBean) bean;
this.entityBean._ebean_recalc();
this.intercept = entityBean._ebean_getIntercept();
this.beanManager = mgr;
this.beanDescriptor = mgr.getBeanDescriptor();