mercredi 28 juillet 2021

*** annotation LOMBOK *** replacing getters and setters methods

 *** annotation LOMBOK ***

in IntelliJ : install the plugin lombok
in project pom.xml : add the dependency
in Entity add those annotations
@Entity
@Data @NoArgsConstructor @AllArgsConstructor @ToString

and we have not need to add Setters, Getters, and Constructors methods

Aucun commentaire:

Enregistrer un commentaire