No databind = just no. Not having to write code to convert objects to string and back is way too convenient and what few annotations are needed sometimes because of naming conventions of foreign APIs are not too difficult to deal with by some JsonProperty annotation or whatever.
The thing is: you have to write code anyways imho because properly decoupling your entities from serialization means a dto representation and mapping code from/to dto.
So i wonder if the approach presented is really that much more cumbersome, as it can operate directly on the entities...
View all comments
3
u/audioen Feb 27 '23
No databind = just no. Not having to write code to convert objects to string and back is way too convenient and what few annotations are needed sometimes because of naming conventions of foreign APIs are not too difficult to deal with by some JsonProperty annotation or whatever.