1.1 --- a/src/main/java/de/uapcore/lightpit/dao/IssueDao.java Thu Oct 15 12:27:05 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/dao/IssueDao.java Thu Oct 15 13:31:52 2020 +0200 1.3 @@ -36,18 +36,7 @@ 1.4 import java.sql.SQLException; 1.5 import java.util.List; 1.6 1.7 -public interface IssueDao extends GenericDao<Issue> { 1.8 - 1.9 - /** 1.10 - * Lists all issues for the specified project. 1.11 - * This is not guaranteed to contain version information. 1.12 - * Use {@link #joinVersionInformation(Issue)} to obtain this information for a specific issue. 1.13 - * 1.14 - * @param project the project 1.15 - * @return a list of issues 1.16 - * @throws SQLException on any kind of SQL error 1.17 - */ 1.18 - List<Issue> list(Project project) throws SQLException; 1.19 +public interface IssueDao extends ChildEntityDao<Issue, Project> { 1.20 1.21 /** 1.22 * Lists all issues that are somehow related to the specified version. 1.23 @@ -82,11 +71,12 @@ 1.24 * Implementations of this DAO must guarantee that the generated ID is stored in the instance. 1.25 * 1.26 * @param instance the instance to insert 1.27 + * @param project the parent project 1.28 * @throws SQLException on any kind of SQL error 1.29 * @see Issue#setId(int) 1.30 */ 1.31 @Override 1.32 - void save(Issue instance) throws SQLException; 1.33 + void save(Issue instance, Project project) throws SQLException; 1.34 1.35 /** 1.36 * Retrieves the affected, scheduled and resolved versions for the specified issue.