This is an automated email from the git hooks/post-receive script. New commit to branch feature/6844-forgotenPassword in repository wao. See http://git.codelutin.com/wao.git commit 8d401db4c434c1142fefe31bd1e797536ded755e Author: Brendan Le Ny <bleny@codelutin.com> Date: Tue Mar 31 12:06:50 2015 +0200 Ajout d'une méthode save sur AbstractWaoTopiaDao --- .../src/main/java/fr/ifremer/wao/AbstractWaoTopiaDao.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/wao-persistence/src/main/java/fr/ifremer/wao/AbstractWaoTopiaDao.java b/wao-persistence/src/main/java/fr/ifremer/wao/AbstractWaoTopiaDao.java index 67103d7..c587fad 100644 --- a/wao-persistence/src/main/java/fr/ifremer/wao/AbstractWaoTopiaDao.java +++ b/wao-persistence/src/main/java/fr/ifremer/wao/AbstractWaoTopiaDao.java @@ -31,11 +31,15 @@ public abstract class AbstractWaoTopiaDao<E extends TopiaEntity> extends Abstrac public void saveNullable(E entity) { if (entity != null) { - if (entity.isPersisted()) { - update(entity); - } else { - create(entity); - } + save(entity); + } + } + + public void save(E entity) { + if (entity.isPersisted()) { + update(entity); + } else { + create(entity); } } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.