TechTalk Genome v4.2

<RootInheritance> Element

Specifies that the type is a root of a type family, as regards storage in the underlying relational database system

<Type name=" type ">
<RootInheritance [catalogName="catalog"] [owner="database-user"] [tableName="table"] />
</Type>
type
A type specifying a persistent class.
catalog
A catalog (database) name in the underlying relational database system. If the catalog is not specified, the default catalog of the DataDomain is used.
database-user
A database user name. If the database-user is not specified, the default database user (dbo in Microsoft SQL Server) is used.
table
The name of a database table in which the fields of the type are stored. If the table is not specified, the short name of type is used.

Remarks

The <RootInheritance> element defines an extent provider for root persistent types. It stores the fields of the type in the specified table of the underlying relational database system. The table is stored in the provided catalog with the database-user.

Examples

                    
<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">
    ...

    <Type name="Employee">
        <RootInheritance /> 
            <!-- the fields will be stored in the "Employee" table -->
            
        ...
    </Type>

    <Type name="Order">
        <RootInheritance tableName="TBL_ORDER" />
            <!-- the fields will be stored in the "TBL_ORDER" table -->
        ...
    </Type>
    
</Mapping>
                

Requirements

Type: TechTalk.Genome.Mapping.RootInheritanceXmlData

Assembly: TechTalk.Genome.dll

Version: 4.2.11

Editions: Professional, Evaluation, Express

Database Platforms: Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2

See Also

Type Extent Providers | <SharedInheritance> Element | <JoinedInheritance> Element