smallrye-config icon indicating copy to clipboard operation
smallrye-config copied to clipboard

Add the ability to generate equals and hashcode for @ConfigMapping

Open ia3andy opened this issue 2 years ago • 4 comments

Currently, it's possible to generate toString as explained here: https://smallrye.io/smallrye-config/Main/config/mappings/#tostring

But there is nothing for equals and hashcode.

The use case is for Quarkus extension config, without this, it's very ugly to deal with equals as shown in this PR: https://github.com/quarkiverse/quarkus-quinoa/pull/594

When this is done we should update the Quarkus writing extension guide to mention this.

ia3andy avatar Dec 19 '23 09:12 ia3andy

cc @radcortez

ia3andy avatar Dec 19 '23 09:12 ia3andy

This relates to #1001 since those generated interfaces also need equals/hashCode, and should share as much code as possible.

dmlloyd avatar Dec 19 '23 13:12 dmlloyd

@radcortez any update on this?

ia3andy avatar Mar 14 '24 14:03 ia3andy

Not yet... sorry @ia3andy. Let me try to prioritize this.

radcortez avatar Mar 14 '24 15:03 radcortez