Patent ID: 7236981

Claim:
A method for generating code, the method comprising: reading into an object generator a description of an interface for an object for use by a database application to access data managed by a database server, wherein said description describes a plurality of methods to access the data managed by the database server, wherein reading into the object generator includes reading a set of metadata describing an attribute of the object, a data type associated with the attribute, and a particular method of said plurality of methods that is to be implemented for accessing a value associated with the attribute, and wherein a description for the particular method involves a data type that is not supported by the database server; causing the object generator to automatically generate code that implements the object based on the description and data types supported by the database server, wherein said code implements each of said methods; and wherein causing the object generator to automatically generate code includes generating an implementation for the particular method that includes logic for converting between a data type that is supported by the database server and the data type that is not supported by the database server; storing the automatically generated code in a computer readable medium.