def self.primary_key_name : Symbol | Nil
#
class SpecimenLabelLabelSpecimen
- SpecimenLabelLabelSpecimen
- BaseModel
- Avram::Model
- Reference
- Object
Overview
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/specimen_labels_label_specimens.crConstant Summary
-
ASSOCIATIONS =
[{type: Specimen, assoc_name: specimen, foreign_key: :specimen_id, relationship_type: :belongs_to, through: nil, base_query_class: nil}, {type: SpecimenLabel, assoc_name: specimen_label, foreign_key: :specimenlabel_id, relationship_type: :belongs_to, through: nil, base_query_class: nil}] of Nil
-
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
-
COLUMNS =
[{name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: specimen_id, type: Specimen::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: specimenlabel_id, type: SpecimenLabel::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
-
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
-
PRIMARY_KEY_NAME =
:id
-
PRIMARY_KEY_TYPE =
Int32
Constructors
- .new(id : Int32, specimen_id : UUID, specimenlabel_id : UUID)
-
.new(rs : DB::ResultSet)
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
Class Method Summary
- .column_names : Array(Symbol)
- .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
- .ensure_correct_column_mappings!
-
.from_rs(rs : DB::ResultSet)
標本ラベルと標本の多対多アソシエーションを作るための中間テーブル用モデル
- .primary_key_name : Symbol | Nil
- .schema_enforcer_validations
- .table_name : String
Macro Summary
Instance Method Summary
-
#base_query_class : ::SpecimenLabelLabelSpecimen::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #delete_operation_class : ::SpecimenLabelLabelSpecimen::DeleteOperation.class
- #id : Int32
- #save_operation_class : ::SpecimenLabelLabelSpecimen::SaveOperation.class
- #specimen : Specimen
- #specimen! : Specimen
- #specimen_count : Int64
- #specimen_id : Specimen::PrimaryKeyType
- #specimen_label : SpecimenLabel
- #specimen_label! : SpecimenLabel
- #specimen_label_count : Int64
-
#specimen_label_preloaded? : Bool
Returns
true
if the association has been preloaded - #specimen_label_query
-
#specimen_preloaded? : Bool
Returns
true
if the association has been preloaded - #specimen_query
- #specimenlabel_id : SpecimenLabel::PrimaryKeyType
Constructor methods inherited from class BaseModel
new(rs : DB::ResultSet)
new
Class methods inherited from class BaseModel
database : Avram::Database.class
database,
from_rs(rs : DB::ResultSet)
from_rs
Macros inherited from class BaseModel
default_columns
default_columns
Constructor Detail
Class Method Detail
Macro Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation