diff --git a/jOOQ/src/main/java/org/jooq/DAO.java b/jOOQ/src/main/java/org/jooq/DAO.java index db87b37bd4..bf08c9a5f6 100644 --- a/jOOQ/src/main/java/org/jooq/DAO.java +++ b/jOOQ/src/main/java/org/jooq/DAO.java @@ -313,7 +313,7 @@ public interface DAO, P, T> { */ @NotNull @Support - List

findAll() throws DataAccessException; + List<@NotNull P> findAll() throws DataAccessException; /** * Find a record of the underlying table by ID. @@ -336,7 +336,7 @@ public interface DAO, P, T> { */ @NotNull @Support - Optional

findOptionalById(T id) throws DataAccessException; + Optional<@NotNull P> findOptionalById(T id) throws DataAccessException; /** * Find records by a given field and a set of values. @@ -409,7 +409,7 @@ public interface DAO, P, T> { */ @NotNull @Support - Optional

fetchOptional(Field field, Z value) throws DataAccessException; + Optional<@NotNull P> fetchOptional(Field field, Z value) throws DataAccessException; /** * Get the underlying table.