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.
CopyC#
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
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 |
| 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