Table of Contents

ForeignJoinColumnAttribute Class

Specifies the database column used as a foreign key in the child table for a unidirectional many-valued association.

Remarks

Use ForeignJoinColumn together with the ManyValuedAssociation attribute when the association is unidirectional (the child class has no back-reference to the parent). The column is created in the child table and references the parent table. For bidirectional associations, use the MappedBy parameter of ManyValuedAssociation instead. When the parent entity has a composite identifier, specify one ForeignJoinColumn for each column in the primary key.

Syntax

Unit: Aurelius.Mapping.Attributes

ForeignJoinColumnAttribute = class(AbstractColumnAttribute);

Constructors

Name Description
Create Creates a ForeignJoinColumnAttribute specifying the foreign key column name, property flags, and the referenced column.

Methods

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

Properties

Name Description
ReferencedColumnName Gets or sets the name of the column in the parent table that is referenced by this foreign key.