I did the followings steps:
- Add Lombok Dependency to the pom.xml
- Add Lombok Plugin to the Intellij
- Enable Annotation Processing in Intellij
I am able to see getter, setter and constructors in the Intellij in the structure tab.
There isn't any syntax error though.
But when I try to compile project it gives an error:
...new ActivityRatingList(userAccount.accountID, userAccount.name, userAccount.email, e.getTestSetActivityID(), grade.getGradeID(), grade.getGradeName(), e.getDateCreated(), raterAccount.name, e.getStatus(), organizationID)
Error:(392, 0) ajc: The constructor ActivityRatingList(int, String, String, Integer, int, String, Date, String, String, int) is undefined
Following is the java class that I want to use Lombok in:
@AllArgsConstructor
@Getter
@Setter
public class ActivityRatingList {
private Integer accountID;
private String userName;
private String email;
private Integer activityID;
private Integer gradeID;
private String gradeName;
private Date testDate;
private String raterAccountName;
private String progressOfRating;
private Integer organizationID;
}
Do I need to do something else?