Sorry, I don't know if this is a proper context to make this question, but I don't know where to make this question.
I write here because I immagine that a lot for today apex programmers has been java programmers.
I appreciate the feature of the SObjcet Class, where I can use methods as get/put for the fields of a SObject.
For SOBJECTS I can do things like:
Account acc = new account(); Acc.put('name',xxx);
The peculiarity is not to use a put method, but the aspect that the method is scalable as the database change, if i add a field, the put method works and is adapted to manage also the new fields. Looks like the method changes automatically with the database. I would reproduce a similar approach in java for a Database like MySQL o similar, the question is for a general OOP language and its interaction with a database.
Can you please suggest me any pattern or approach to reproduce similar behaviour?