src/main/java/de/uapcore/lightpit/dao/VersionDao.java

changeset 62
833e0385572a
parent 59
c759c60507a2
child 72
0646c14e36fb
--- a/src/main/java/de/uapcore/lightpit/dao/VersionDao.java	Sun May 17 16:38:04 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/dao/VersionDao.java	Mon May 18 21:05:57 2020 +0200
@@ -34,14 +34,7 @@
 import java.sql.SQLException;
 import java.util.List;
 
-public interface VersionDao {
-
-    Version find(int id) throws SQLException;
-    void save(Version instance) throws SQLException;
-    boolean update(Version instance) throws SQLException;
-    default void saveOrUpdate(Version instance) throws SQLException {
-        if (!update(instance)) save(instance);
-    }
+public interface VersionDao extends GenericDao<Version> {
 
     /**
      * Lists all versions for the specified project.

mercurial