- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3k
Description
Description
I recently tried to use reflection-free Jackson serialization but I realized it doesn't work with Lombok's fluent setters (= not prefixed with set).
fluent: If true, the getter for pepper is just pepper(), and the setter is pepper(T newValue).
@Accessors(fluent = true) // This annotation enables fluent mode. Also, it's possible to enable it by adding `lombok.accessors.fluent=true` in `lombok.config` file.
public class User {
    @Setter
    @JsonProperty(required = true)
    private String id;
}This generates my setter as id(String id) instead of setId(String id), so Quarkus's JacksonDeserializerFactory::isSetterMethod doesn't treat that as a setter method.
Possible workarounds:
- Remove fluentmode
- Keep fluentmode but add prefixed setters to classes
Implementation ideas
I guess the easiest solution would be to detect if the class contains fluent setters but I guess it's not that easy...
Lombok only adds lombok.Generated annotation on generated setters (it's added by default but it can be disabled).
Another implementation would be to have a configuration options, such as quarkus.lombok.fluent-accessors=true.