With Spring Hateoas 0.25, we had code like this:
public class StatisticsResource extends Resource<StatisticsDto>
{
:
}
public class StatisticsResourceAssembler
extends ResourceAssemblerSupport<StatisticsDto, StatisticsResource>
{
:
}
Now I'm migrating it to 1.0, like this:
public class StatisticsResource extends EntityModel<StatisticsDto>
{
:
}
public class StatisticsResourceAssembler
extends RepresentationModelAssemblerSupport<StatisticsDto, StatisticsResource>
{
:
}
This however doesn't compile:
extends RepresentationModelAssemblerSupport<StatisticsDto, StatisticsResource>
^
where D is a type-variable:
D extends RepresentationModel<D> declared in class RepresentationModelAssemblerSupport
Any idea what's going wrong here?