Is there any java bean generation in eclipse?

So, we constantly generate java beans and often need

1. an optional constructor
2. fields
3. getters
3. optional setters

Is there a quick wizard for this? I know about generating a constructor and creating getters / seters, but it looks like it should be time for a one-step process.

+4
source share
1 answer

You can use Lombok, so you do not need to write or generate getters, setters, or a constructor. Lombok @Data

You can fine tune what you want using @Getter, @Setter and @RequiredArgsConstructor instead of @Data p>

+1
source

Source: https://habr.com/ru/post/1619653/


All Articles