[#7874] Fixed generated code
This commit is contained in:
parent
be6b14560e
commit
f43dfec59a
@ -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);
|
||||
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user