Skip to content

enum Athena::ORM::Mapping::InheritanceType #

The kind of inheritance mapping an entity hierarchy uses.

Todo

Inheritance mapping isn't supported yet, so every entity uses NONE.

Members#

NONE = 0#

The entity isn't part of a mapped inheritance hierarchy.

JOINED = 1#

Each class in the hierarchy is stored in its own table, joined to its parent's.

SINGLE_TABLE = 2#

The whole hierarchy is stored in one table, with a discriminator column identifying each row's class.

Methods#

#joined?#

Returns true if this enum value equals JOINED

View source

#none?#

Returns true if this enum value equals NONE

View source

#single_table?#

Returns true if this enum value equals SINGLE_TABLE

View source