A data adapter including method and apparatus is presented. In one
embodiment, the data adapter is a method. The method includes finding a
set of records of a relational database matching an object instance of an
object type. The method further includes updating the set of records of
the relational database based on a first set of instances of components
of the object instance, the instances of components of the first set
corresponding to the records of the set of records. The method further
includes inserting new records in the relational database corresponding
to a second set of instances of components of the object instance, the
instances of components of the second set not matching records of the set
of records. The method also includes recursively repeating the finding,
updating and inserting with respect to child components of the
components.