You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we use the add method on a PagedModel, this method will return a CollectionModel and we "loose" the type PagedModel type. In fact, if we want to retrieve it, we can cast the CollectionModel into a PagedModel.
This can be achieve creating a new abstract class AbstractCollectionModel<S extends AbstractCollectionModel<S, T>, T> which will extends RepresentationModel<S>. After that, CollectionModel<T> will be empty and will extends AbstractCollectionModel<CollectionModel<T>, T> and it will be almost the same for PagedModel
changed the title [-]Fluent Api for adding links to a PagedModel returnt a CollectionModel[/-][+]Fluent Api for adding links to a PagedModel return a CollectionModel[/+]on May 29, 2020
Activity
[-]Fluent Api for adding links to a PagedModel returnt a CollectionModel[/-][+]Fluent Api for adding links to a PagedModel return a CollectionModel[/+]gregturn commentedon May 29, 2020
Actually I'd like to see that, if it isn't too much effort on your end.
spring-projects#1300 WIP
Patouche commentedon Jun 2, 2020
Hello,
I've started working on it. It's a little bit harder than I was thinking at first with the Jackson Serializer/Deserialiser.
I will submit this PR when It will be ready.
[spring-projects#1300] Fix several test switching generics order
[spring-projects#1300] Fix jackson serialization test
[spring-projects#1300] Integrate abstract class for collection model
[spring-projects#1300] Fix several test switching generics order
[spring-projects#1300] Fix jackson serialization test
stephaneeybert commentedon Jul 28, 2024
Seeing this old issue still opened I now wonder if the spring-hateoas project is still alive ?