Tuple Table Pattern
To automatically store an object in a database in a way that is human-readable and easily extensible.
An object representing some data that we want to store.
Takes a data object and converts its properties to name = value pairs.
Stores the rows of pairs.
The tuple table DAO takes a data object and converts its properties to name=value pairs. It then writes those pairs into multiple rows of a database table. Each row of the table contains the object’s primary key, a field name, and a value. When the client needs to retrieve the data from the table, the DAO reads the name=value pairs and uses them to reconstitute an instance of the object.