openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

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

Open DielN opened this issue 1 year ago • 0 comments

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

DielN avatar Oct 18 '24 19:10 DielN