We upgraded the Java version from 8 to 11 but I got compile errors of getter/setter methods where I implemented the POJO classes with Lombok's Getter and Setter Annotations.
Is there a way to use Lombok's @Data annotation which provides getter and setter without implementing them at Java 11?
Currently, I am facing the error:
unable to find getStoreName()
where storeName was declared as a global variable in the class with @Data Lombok annotation above the class.