An apparatus for automatically mapping information between an object-oriented application and a structured database, said apparatus comprising a digital computing system, said digital computing system comprising a first processor, a memory coupled to said processor, a user interface coupled to said processor, a storage device coupled to said processor, a network coupled to said processor, a second processor dedicated to a structured database coupled to said network and supporting said structured database, and:
- means for executing instructions on said first processor to load into temporary storage an object model, said object model comprising a plurality of semantic elements, said semantic elements being less complex than object class source code definitions, representing a plurality of object classes and a plurality of relationships between said plurality of object classes within said object-oriented application, each of said plurality of semantic elements comprising relationships between object classes, inheritances between object classes, and attributes of an object class comprising at least one object ID attribute;
- means for executing instructions on said processor to automatically generate code that when executed automatically maps said information between said object-oriented application and said structured database;
- executing instructions on said processor to generate code for each object class, including code for four routines associated with said object class, said four routines being:
- a routine to create an instance of said object class;
- a routine to retrieve an instance of said object class;
- a routine to update an instance of said object class;
- and
- a routine to delete an instance of said object class, each of said four routines based on said semantic elements of said object model;
- and
- means associated with said first processor for outputting said code to persistent storage.