I am experimenting in combining Jackson and Lombok. Those are my classes:
package testelombok;
import com.fasterxml
@AllArgsConstructor(suppressConstructorProperties = true)
is deprecated. Define lombok.anyConstructor.suppressConstructorProperties=true
(https://projectlombok.org/features/configuration) and change POJO's lombok annotation from @Value
to @Data
+ @NoArgsConstructor
+ @AllArgsConstructor
works for me.
You can get Jackson to play with just about anything if you use its "mixin" pattern. Basically, it gives you a way to add Jackson annotations onto an existing class without actually modifying that class. I'm leaning towards recommending it here rather than a Lombok solution because this is solves a problem Jackson is having with a Jackson feature, so it's more likely to work long-term.