DEV Community

Discussion on: How to generate Java Getters and Setters with Lombok (Part 1)

Collapse
 
marirsri profile image
Sriram

how do i set the value for the setter methods for the property if i use the lomok? I have a class as below:

@Getter
@Setter
public class LombokDTO {
private int id;
}
I have created a object for this class to set value for id.
LombokDTO lto = new LombokDTO();
but i could not find setId method if i give lto. ?