IP Library Granted Patent US 8,291,376
Granted Patent B2
US 8,291,376 · App. 12/638,913 · Granted Oct 16, 2012

Method and system to automatically regenerate software code

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,291,376
App. No.
12/638,913
Granted
Oct 16, 2012
Kind
B2
Abstract

According to a second aspect there is provided a method and system to automatically regenerate software for an object to relational mapping system. The system automatically regenerates a first set of classes. For each class, the system reads class information; reads meta-data based on the class information; and automatically regenerates the class based on the meta-data without overwriting associated custom code. The first set of classes includes base code that is associated with the custom code. The first set of classes and the base code are utilized by the object to relational mapping system to enable access to data that is persistently stored in a database.

Claims (29)

1. A method to automatically regenerate software for an object to relational mapping system, the method including:

reading class information respectively associated with a first plurality of classes, the class information comprises a configuration file containing meta-data and a class definition file including at least one template defining at least one rule applied to the meta-data in the configuration file to regenerate a class; and

automatically regenerating the first plurality of classes based on the configuration file and the class definition file, the first plurality of classes including base code that is associated with a second plurality of classes including custom code, the first plurality of classes being regenerated without overwriting the second plurality of classes including the custom code, the first plurality of classes and the second plurality of classes being utilized by an object to relational mapping system to enable access to data that is persistently stored in a database.

2. The method of claim 1 , wherein the custom code overrides the base code.

3. The method of claim 2 , wherein the custom code augments the base code.

4. The method of claim 1 , wherein the second plurality of classes is to respectively inherit from the first plurality of classes.

5. The method of claim 1 , wherein the custom code includes code that is not included in the base code.

6. The method of claim 1 , wherein automatically regenerating the class includes adding a previously undefined attribute to the class.

7. The method of claim 1 , wherein automatically regenerating the class includes removing a previously defined attribute from the class.

8. The method of claim 1 , wherein the configuration file includes an SQL statement that includes a tag that is dynamically substituted for a value.

9. The method of claim 1 , wherein the first plurality of classes and the second plurality of classes each include a class that is utilized as an interface for a data object.

10. The method of claim 1 , wherein the first plurality of classes and the second plurality of classes each include a class that is utilized to prevent direct access to the data.

11. The method of claim 1 , wherein the first plurality of classes includes a first class that defines a plurality of read sets that determine columns that are requested from the database and populated to an instance of a data object class.

12. The method of claim 1 , wherein the first plurality of classes includes a first class that defines at least one of a plurality of update sets and insert sets that determine attributes that are persisted to the database from a data object class.

13. The method of claim 1 , wherein the first plurality of classes includes a first class that defines a plurality of sets of hints.

14. The method of claim 1 , wherein the first plurality of classes includes a first class that includes meta-data to access a subobject.

15. The method of claim 1 , wherein the first plurality of classes includes at least one class that supports hierarchical relationships between data object types.

16. The method of claim 1 , wherein the first plurality of classes includes a first class to automatically retrieve data in a single request to the database to construct at least one data object in an object graph.

17. The method of claim 1 , wherein the first plurality of classes includes at least one class to perform at least one operation from a group of operations including an update operation, an insert operation, and a delete operation for at least one data object in an object graph in a single database request.

18. A system to automatically regenerate software for an object to relational mapping system, the system including:

at least one machine including:

a read module, executable on the machine, to read class information respectively associated with a first plurality of classes, the class information comprises a configuration file that contains meta-data and a class definition file that includes at least one template that defines at least one rule that is operable for application to meta-data in the configuration file to generate a class; and

a class generator module, executable on the machine, to automatically regenerate the first plurality of classes based on the configuration file and the class definition file, the first plurality of classes including base code that is associated with a second plurality of classes including custom code, the first plurality of classes to be regenerated without overwriting the second plurality of classes including the custom code, the first plurality of classes and the second plurality of classes utilized by the object to relational mapping system to enable access to data that is persistently stored in a database.

19. A machine readable medium storing a set of instructions that, when executed by a machine, cause the machine to:

read class information respectively associated with a first plurality of classes, the class information comprises a configuration file that contains meta-data and a class definition file that includes at least one template that defines at least one rule that is operable for application to meta-data in the configuration file to generate a class; and

automatically regenerate the first plurality of classes based on the configuration file and the class definition file, the first plurality of classes including base code that is associated with a second plurality of classes including custom code, the first plurality of classes to be regenerated without overwriting the second plurality of classes including the base code, the first plurality of classes and the second plurality of classes utilized by an object to relational mapping system to enable access to data that is persistently stored in a database.

20. A system to automatically regenerate software for an object to relational mapping system, the system including:

a first means for reading class information, the class information comprises a configuration file containing meta-data and a class definition file including at least one template defining at least one rule applied to meta-data in the configuration file to generate a class; and

a second means for automatically regenerating the first plurality of classes based on the configuration file and the class definition file, the first plurality of classes including base code that is associated with a second plurality of classes including custom code, the first plurality of classes to be regenerated without overwriting the second plurality of classes including the base code, the first plurality of classes and the second plurality of classes utilized by the object to relational mapping system to enable access to data that is persistently stored in a database.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 23, 2015
From: EBAY INC.
To: PAYPAL, INC.
Reel/Frame 036169/0680 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 2, 2015
From: SEITZ, GREG; KASTEN, CHRISTOPHER J.
To: EBAY INC.
Reel/Frame 034865/0474 →