Patent ID: 6941298

Claim:
A method for accessing data in a database using container managed persistence enterprise Java beans (EJBs), wherein each instance of the container managed persistence enterprise Java bean object represents a row of data in the database, the method comprising the steps of: (a) receiving a single EJB select method at a container managed persistence EJB object to access multiple data of related container managed persistence EJB objects, wherein said multiple data is present in corresponding related rows in different tables of a database; (b) translating an EJB query language (EJBQL) query of said single EJB select method into a target language query of said database; (c) retrieving data from said database using said target language query wherein said step of retrieving data from the persistent store allows direct access, including bypassing a bean representation of the requested data; (d) saving said data as a result set object containing the retrieved data in response to the target language query, wherein said result set object retains the relationships between the data corresponding to the original database schema; and, (e) allowing access to said result set object to retrieve said data.