Is there any method of annotation in Java 8
(or earlier) to have at least one of the POX classes in the Getters and Setters methods without the need to write them? I speak of something similar to what in C#
is done like this:
public string Code { get; set; }
public string Name { get; set; }
public string Details { get; set; }
I've seen that there are third-party libraries to do it, like the Project Lombok , but I'm looking to see if it can be done directly with the Java JDK
UPDATE : I'm not looking for how to write getters and setters, but quite the opposite, how not to write them, in the style of C #