added refresh method

This commit is contained in:
Joern Muehlencord
2019-09-02 15:47:40 +02:00
parent 97649c9306
commit c4d71f9614

View File

@ -178,6 +178,10 @@ public abstract class CommonAbstractController {
return em.merge(entity); return em.merge(entity);
} }
public <T extends Serializable> void refresh (T entity) {
em.refresh(entity);
}
/* *** filter methods *** */ /* *** filter methods *** */
protected <T extends Serializable> Predicate getFilterCondition(CriteriaBuilder cb, Root<T> root, Map<String, Object> filters) { protected <T extends Serializable> Predicate getFilterCondition(CriteriaBuilder cb, Root<T> root, Map<String, Object> filters) {