发明名称 Having a single set of object relational mappings across different instances of the same schemas
摘要 A method, system, and computer instructions for providing a single set of object relational mappings across different instances of the same schemas. With the present invention, multiple datasources are first configured for class (or set of object definitions). A mapping identifier is set at runtime, wherein the mapping ID is used to access the correct datasource. Mapping code is then generated from the datasource based on the mapping identifier. A schema identifier is acquired from the generated mapping code and prepended to tables in the in the SQL generated code. The schema name is used to connect to the correct schema within a datasource. The mapping ID is also used to access the correct JNDI name to access the correct data source which represents a physical database.
申请公布号 US7536409(B2) 申请公布日期 2009.05.19
申请号 US20050058036 申请日期 2005.02.15
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 BARCIA ROLAND
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址