I am using lombok annotations on a class:
@Value
@NoArgsConstructor
@AllArgsConstructor
public class TestClass implements Serializable {
private String x;
private String y;
private String z;
}
I need @Value as I want fields to be immutable, and constructor annotations as ORM framework I am using needs both a no arg constructor as well as constructor for initializing fields.
But IntelliJ marks this as error stating fields need to be initialized, while we have a noarg constructor defined by lombok.
How to work around this issue?