Insert data in an object to a database.
- by paul
I am facing the following design/implementation dilemma.
I have a class Customer which is below with getters and setters. I would like to insert the value of the Customer into a "Customer" table of a database. But Customer has an address which is of type "Address". How do I go about inserting this field into the database?(I am using sqlite3). I…