[#7874] Fixed generated code

This commit is contained in:
Lukas Eder 2018-09-20 12:22:32 +02:00
parent be6b14560e
commit f43dfec59a
2 changed files with 8 additions and 4 deletions

View File

@ -283,12 +283,18 @@ public interface DAO<R extends TableRecord<R>, P, T> {
/**
* Get the underlying table
* Get the underlying table.
*/
Table<R> getTable();
/**
* Get the underlying POJO type
* Get the underlying POJO type.
*/
Class<P> getType();
/**
* Extract the ID value from a POJO.
*/
T getId(P object);
}

View File

@ -342,8 +342,6 @@ public abstract class DAOImpl<R extends UpdatableRecord<R>, P, T> implements DAO
// XXX: Template methods for generated subclasses
// ------------------------------------------------------------------------
protected abstract T getId(P object);
@SuppressWarnings("unchecked")
protected /* non-final */ T compositeKeyRecord(Object... values) {
UniqueKey<R> key = table.getPrimaryKey();