'i am implementing a standard DAO code, how and where should I write the code to convert the model class to the sql class?
my code has a model with a facade called "system" which create a DBfacade class that contains al the method to interact with the database.
now I need classes to convert the objects I make through the system class into object the can be saved into the database. where should I write the code to convert them? I know it shouldn't be part of the model, because the model should be as separate as possible to the mechanism to save into the database.
where should I make the methods to convert the model objects into the sql objects?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
