I've added Lombok maven repository in my project and successfully use the Lombok annotations. And I tried to access the setter and getter methods from another class but couldn't access those methods. I'm using spring Boot version 2.1.1 and STS. Here is my simple code snippet.
@Entity
@Table(name = "role")
//@Data
@ToString
public class Role {
    @Id @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="role_id")
    private int id;
    @Column(name="role")
    @Getter @Setter(AccessLevel.PUBLIC)
    private String role;        
}
 
     
    

