Table of Contents

AssociationAttribute Class

Specifies a many-to-one association between the marked field or property and another entity class.

Remarks

Use Association on fields or properties whose type is another entity class. Always combine it with a JoinColumn attribute that defines the foreign key column. The Properties set controls lazy loading and whether the association is required. The Cascade set defines which persistence operations are automatically propagated to the associated object. For associations, CascadeTypeAllButRemove is the most commonly recommended cascade.

Syntax

Unit: Aurelius.Mapping.Attributes

AssociationAttribute = class(TCustomAttribute);

Constructors

Methods

Name Description
Clone Returns a deep copy of this attribute instance.

Properties

Name Description
Cascade Gets or sets the cascade types applied to the associated object during persistence operations.
Properties Gets or sets the association property flags (e.g., lazy loading, required).