Skip to content

How to extend the EntityModel now that all constructors are deprecated? #1297

Open
@reda-alaoui

Description

@reda-alaoui

Hi,

I moved to Spring HATEOAS 1.1.0.
I want to inherit from EntityModel but all constructors are deprecated.

Are they expect to become private? If not, what is their future? I suppose they will become protected.

We use Sonar to forbid new usage of deprecated elements. This is problematic for us.

As an alternative, I wanted to extend RepresentationModel instead but my model is very similar to EntityModel and does not behave like it. I guess it has something to do with EntityModel registered mixins. I'd like to avoid registering all mixins myself.

Could all accesses to content (in EntityModel) be done through getContent or a new protected method?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions