fix api key generation

This commit is contained in:
Athou
2017-05-09 08:59:31 +02:00
parent d14a6d8311
commit d4db98fd64
2 changed files with 6 additions and 3 deletions

View File

@@ -30,6 +30,10 @@ public abstract class GenericDAO<T extends AbstractModel> extends AbstractDAO<T>
models.forEach(m -> persist(m));
}
public void update(T model) {
currentSession().merge(model);
}
public T findById(Long id) {
return get(id);
}