Patent ID: 9558214
Date: 2017-01-31
CPC Classifications: G06F

Claim:
1. A computer implemented method for using mapping information to decouple code modifications from database schema updates, said method comprising: maintaining mappings between objects residing in an object relational mapping (ORM) system and tables residing in a database; annotating an attribute of an object in the ORM system with an annotation to generate an annotated attribute, the annotation indicating that the annotated attribute is capable of being stored as a secondary mapped attribute; receiving, by the ORM system, a read operation or write operation that references a specified attribute of the object; determining that the specified attribute referenced by the read operation or write operation corresponds to the annotated attribute of the object; determining that a first column exists in the database that is associated with the specified attribute of the object referenced by the read operation or the write operation; determining that a schema of the database has been updated to include the first column or if the first column does not exist, include a second column designated to store values for attributes that have been annotated with the annotation indicating secondary mapped attributes; mapping subsequent write operations to the first column in the database to generate a map in the ORM system; and removing the values in the second column.