added refresh method
This commit is contained in:
@ -177,6 +177,10 @@ public abstract class CommonAbstractController {
|
||||
public <T extends Serializable> T attach(T entity) {
|
||||
return em.merge(entity);
|
||||
}
|
||||
|
||||
public <T extends Serializable> void refresh (T entity) {
|
||||
em.refresh(entity);
|
||||
}
|
||||
|
||||
|
||||
/* *** filter methods *** */
|
||||
|
||||
Reference in New Issue
Block a user