Skip to content

Instantly share code, notes, and snippets.

@iXo
iXo / SGBeanPersistController.java
Last active Dec 16, 2015 — forked from domdorn/SGBeanPersistController.java
New version that remove Ebean entity bean classname that prevent to invoke 'postUpdate'
View SGBeanPersistController.java
package models.sgcore;
import com.avaje.ebean.event.BeanPersistAdapter;
import com.avaje.ebean.event.BeanPersistRequest;
import javax.annotation.PreDestroy;
import javax.persistence.*;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;