abstract class Athena::ORM::Mapping::ToOneOwningSide
inherits Athena::ORM::Mapping::OwningSide
#
Base class for the owning side of a to-one association, which holds the foreign key in its #join_columns.
Without an AORMA::JoinColumn annotation, the association has a single join column named <property>_id, referencing the target's id column.
Join columns are nullable by default, and non-nullable if the association is part of the identifier.
The join column of a OneToOne association with a single join column is marked unique.
Included modules
Athena::ORM::Mapping::ToOne
Direct known subclasses
Athena::ORM::Mapping::ManyToOneOwningSide
Athena::ORM::Mapping::OneToOneOwningSide
Methods#
#join_columns : Array(JoinColumn)#
The columns of the entity's table holding the foreign key.
#join_columns=(join_columns : Array(JoinColumn))#
The columns of the entity's table holding the foreign key.
#lazy_proxy=(lazy_proxy : Bool)#
True when the property type carries Proxy(Target).
Owners provide a Athena::ORM::Proxy(Target) instance instead of running the deferred-eager fallback.
Set by apply_type_association_mapping.
#lazy_proxy? : Bool#
True when the property type carries Proxy(Target).
Owners provide a Athena::ORM::Proxy(Target) instance instead of running the deferred-eager fallback.
Set by apply_type_association_mapping.
#source_to_target_key_columns : Hash(String, String)#
Maps each join column name to the name of the target column it references.
#source_to_target_key_columns=(source_to_target_key_columns : Hash(String, String))#
Maps each join column name to the name of the target column it references.
#target_to_source_key_columns : Hash(String, String)#
Maps each referenced target column name to the name of the join column referencing it.
#target_to_source_key_columns=(target_to_source_key_columns : Hash(String, String))#
Maps each referenced target column name to the name of the join column referencing it.