I have installed the plugin:
and dependency:
But when I use IDEA to build entity, it will like this:
I want to replace getter and setter by @Getter,@Setter when IDEA build it automatically.
You can use just @Data
Lombok annotation with your entities, for example:
@Data
@Entity
public class MyEntity {
@Id
private Long id;
@Column(lenght = 16, nullable = false)
private String someField;
}
In this case you get your entity with automatically created getters, setters, default constructor (without parameters), equals
, hashCode
and toString
methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With