Skip to content

module Athena::ORM::Annotations #

Contains all the Athena::ORM based annotations. See each annotation for more information.

An entity is a class inheriting from AORM::Entity with the AORMA::Entity annotation. The rest of the annotations describe how it maps to the database: its table, which instance variables are columns, its identifier, and its associations with other entities. Methods may also be annotated to run when an entity reaches a certain point in its lifecycle, such as AORMA::PrePersist.