摘要 |
A method, apparatus, and computer instructions are provided for preserving relationships of mapped views in an object model. A database model, including database tables and views is examined and a foreign key constraint list is derived for the view. A set of objects for an object model is generated from the database model. Based on the derived foreign key list, relationships are generated between objects mapped to the view and objects mapped to the target table of the view's derived foreign key. |