NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Defines the inheritance strategy to be used for an entity class
hierarchy. It is specified on the entity class that is the root of
the entity class hierarchy.
Namespace: NPersistenceIf the Inheritance annotation is not specified or if no inheritance type is specified for an entity class hierarchy, the SINGLE_TABLE mapping strategy is used.
Examples
CopyC#
Example: [Entity] [Inheritance(strategy=JOINED)] public class Customer { ... } [Entity] public class ValuedCustomer extends Customer { ... }
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public sealed class Inheritance : Attribute
Members
All Members | Constructors | Fields |
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
Inheritance()()()() | Initializes a new instance of the Inheritance class | |
Strategy | The strategy to be used for the entity inheritance hierarchy.
|
Inheritance Hierarchy
System..::..Object
System..::..Attribute
NPersistence..::..Inheritance
System..::..Attribute
NPersistence..::..Inheritance