I am using Room architecture component for persistence. I have created generic DAO interface to avoid boilerplate code. Room Pro Tips
But my code doesn\'t compile s
The reason is that you specified ReasonDao type as generic parameter instead of Reason.
Original code:
@Dao
public abstract class ReasonDao implements BaseDao {
...
}
Correct code:
@Dao
public abstract class ReasonDao implements BaseDao {
...
}
where Reason is the type marked with @Entity annotation.
By the way, this is fixed in the accepted answer, but is not mentioned in the changelist :)