I have a set of bean classes. I would like to know the best approach to generate the getters and setters automatically at run time. Can anyone help please.
java, spring boot Autogenerate getters and setters at runtime
13.4k views Asked by Tech Learner At
3
I'm not aware of a way to generate the getters/setters at runtime, but Lombok has annotations that you can add that will generate the getters/setters for you at compile time. It is a pretty seamless experience. Lombok can also generate builder classes, toString, equals/hashCode methods.