-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Instead of manually writing getter and setter methods in model classes, you can use Lombok annotations like Getter, Setter, and AllArgsConstructor to achieve the same functionality with less code.
Benefits of Using Lombok:
Less Boilerplate Code – No need to manually define getter, setter, or constructor methods.
Improved Readability – The class remains concise and easier to understand.
Easy Maintenance – If you need to add more fields, you don't have to update getters and setters manually.
Example
Below I provide one of your (CreateVirtualParams ) dao class with Lombok
`package dao.params;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
public class CreateVirtualParams {
private String provider;
private String bankCode;
}
`