Skip to content

Instantly share code, notes, and snippets.

@iXo
iXo / SGBeanPersistController.java
Last active December 16, 2015 22:49 — forked from domdorn/SGBeanPersistController.java
New version that remove Ebean entity bean classname that prevent to invoke 'postUpdate'
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;