Object-relational mapping system and method for generic relationships
    1.
    发明授权
    Object-relational mapping system and method for generic relationships 有权
    对象关系映射系统和通用关系的方法

    公开(公告)号:US07702649B1

    公开(公告)日:2010-04-20

    申请号:US10864185

    申请日:2004-06-08

    IPC分类号: G06F7/00 G06F17/00

    摘要: A system and method are described for performing a mapping between persistent data objects and a database. For example, a method according to one embodiment of the invention comprises determining whether an attribute having a generic type is an instance of a persistent class; and if the attribute is an instance of a persistent class, then mapping the attribute to a discriminator column holding the type associated with the attribute and further mapping the attribute to a reference column holding a key associated with the attribute.

    摘要翻译: 描述了用于执行持久数据对象和数据库之间的映射的系统和方法。 例如,根据本发明的一个实施例的方法包括确定具有通用类型的属性是否是持久类的实例; 并且如果属性是持久类的实例,则将属性映射到保持与该属性相关联的类型的标识符列,并进一步将该属性映射到保存与该属性相关联的密钥的引用列。