主权项 |
1. A method for mapping operations in an object model to operations in a relational model, the method comprising:
storing a representation of an object model comprising one or more object types, each object type associated with a table of a database, wherein objects of each object type map to records stored in the table; identifying an object type in the object model, the object type associated with a table comprising a set of columns, the table associated with a virtual column, the object type comprising:
a set of mapped attributes, wherein a mapped attribute is mapped to a distinct column of the table; anda set of unmapped attributes, wherein an unmapped attribute fails to map to a distinct column of the table; and storing an object of the object type, the storing comprising:
storing a record of the table corresponding to the object, wherein each mapped attribute of the object is stored in the record as a value of a column associated with the mapped attribute;representing the set of unmapped attributes of the object as an encoded value; andstoring the encoded value in the virtual column. |