diff -r 1574965c7dc7 -r 57cfb94ab99f src/main/java/de/uapcore/lightpit/dao/GenericDao.java --- a/src/main/java/de/uapcore/lightpit/dao/GenericDao.java Wed May 13 21:46:26 2020 +0200 +++ b/src/main/java/de/uapcore/lightpit/dao/GenericDao.java Thu May 14 22:48:01 2020 +0200 @@ -41,6 +41,15 @@ List list() throws SQLException; /** + * Finds an entity by its integer ID. + * + * @param id the id + * @return the enity or null if there is no such entity + * @throws SQLException on any kind of SQL errors + */ + T find(int id) throws SQLException; + + /** * Inserts an instance into database. * * @param instance the instance to insert