Integrating both modifications to an object model and modifications to a databse into source code by an object-relational mapping tool
First Claim
1. A method in a computer system having a database with a schema, having a preexisting version of a data structure reflecting the schema of the database, and having an object model containing objects whose interrelationship reflects the schema of the database, comprising:
- receiving database modifications to the schema of the database;
receiving object model modifications into the object model;
creating a new version of the data structure reflecting the schema of the database with the received database modifications;
comparing the new version of the data structure with the preexisting version of the data structure to isolate the database modifications;
updating the object model to reflect the database modifications such that the updated object model contains both the database modifications and the object model modifications; and
generating source code based on the updated object model.
0 Assignments
0 Petitions
Accused Products
Abstract
In accordance with methods and systems consistent with the present invention, an improved object-relational mapping tool is provided that generates source code containing classes which preserve both changes to the database schema as well as customizations to a preexisting version of the classes. This functionality alleviates the programmer from having to recreate their changes to the classes when the database changes, thus saving significant development time over conventional systems.
34 Citations
27 Claims
-
1. A method in a computer system having a database with a schema, having a preexisting version of a data structure reflecting the schema of the database, and having an object model containing objects whose interrelationship reflects the schema of the database, comprising:
-
receiving database modifications to the schema of the database;
receiving object model modifications into the object model;
creating a new version of the data structure reflecting the schema of the database with the received database modifications;
comparing the new version of the data structure with the preexisting version of the data structure to isolate the database modifications;
updating the object model to reflect the database modifications such that the updated object model contains both the database modifications and the object model modifications; and
generating source code based on the updated object model. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method in a computer system having a first data structure reflecting a logical structural relationship among data in a data source, comprising:
-
creating a second data structure reflecting a modified version of the logical structural relationship among the data in the data source;
comparing the first data structure with the second data structure to isolate the modifications made to the logical structural relationship among the data; and
generating source code reflecting the modifications. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A method in a computer system having a group of data structures reflecting a logical structure of a data source, comprising:
-
receiving customizations into the group of data structures;
receiving an indication that the data source has been modified; and
incorporating the modifications into the group of data structures while preserving the customizations. - View Dependent Claims (12)
-
-
13. A data processing system, comprising:
-
a secondary storage device with a database having a logical structure comprising tables with rows and columns;
a memory containing;
a first database data structure reflecting the logical structure of the database;
an object model containing objects based on the first database data structure;
an object-relational mapping tool configured to operate after the logical structure of the database has been modified, configured to import the modified logical structure, configured to create a second database data structure based on the modified logical structure, configured to compare the first and the second database data structures to isolate the modifications made to the logical structure, and configured to update the object model with the isolated modifications; and
a processor configured to run the object-relational mapping tool. - View Dependent Claims (14, 15, 16, 17)
-
-
18. A computer system having a database with a schema, having a preexisting version of a data structure reflecting the schema of the database, and having an object model containing objects whose interrelationships reflect the schema of the database, comprising:
-
means for receiving database modifications to the schema of the database;
means for receiving object model modifications into the object model;
means for creating a new version of the data structure reflecting the schema of the database with the received database modifications;
means for comparing the new version of the data structure with the preexisting version of the data structure to isolate the database modifications;
means for updating the object model to reflect the database modifications such that the updated object model contains both the database modifications and the object model modifications; and
means for generating source code based on the, updated object model.
-
-
19. A computer-readable medium containing instructions for controlling a computer system to perform a method, the computer system having a first data structure reflecting a logical structural relationship among data in a data source, the method comprising:
-
creating a second data structure reflecting a modified version of the logical structural relationship among the data in the data source; and
comparing the first data structure with the second data structure to isolate the modifications made to the logical structural relationship among the data so that source code can be generated to reflect the modifications. - View Dependent Claims (20, 21, 22, 23, 24)
-
-
25. A computer-readable medium containing instructions for controlling a computer system to perform a method, the computer system having a group of data structures reflecting a logical structure of a data source, the method comprising:
-
receiving customizations into the group of data structures;
receiving an indication that the data source has been modified; and
incorporating the modifications into the group of data structures while preserving the customizations. - View Dependent Claims (26)
-
-
27. A computer-readable memory device encoded with an object model data structure reflecting a schema of a database, the object model for use in generating source code based on the schema, the object model data structure comprising:
at least one object that receives customizations from a user and that is updated to reflect updates to the schema while preserving the customizations when the schema is updated.
Specification