I am asking a silly questions about a pojo that will be used only for serialisation (jackson -> json), not as a business object
- use public attributes
- use private attributes with public getters and setters
I wonder what is the difference in this case between a simple object with public attributes and one with private attributes but with public getters and setters.
I have to stress out this object will not be used as a business object later. Only for serialization as a REST response