Skip to content

[REQ] [Java][Microprofile] Add equals() & hashCode() #19910

Closed
@DielN

Description

@DielN

Is your feature request related to a problem? Please describe.

Comparing models is complicated when not having an equals method. Methods like (some) collection's contains() also don't work properly.

Describe the solution you'd like

Add the equals and hashCode methods to the pojo. Maybe put them as a new .mustache template so it can easily be customized / reverted to the default behavior.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions