Reputation: 763
I am new to lombok project for setters and getter in java. How can I invoke these methods if my class is like this:
@Entity(name="Users")
@Getter
@Setter
@ToString
public class Users implements Serializable {
@Id
@GeneratedValue
private Long id;
@Column(name="firstname")
private String firstname;
if I create the new object of Users like
Users user = new Users();
then user.getClass()
is the only suggestion I am getting. How can I so user.get.. OR user.set
?
Upvotes: 0
Views: 4645
Reputation: 86
I had also this problem. In order to use Lombok, you need to install lombok plugin for specific IDE. Here is a link for intellij and eclipse: https://www.baeldung.com/lombok-ide
Upvotes: 3