Table of Contents
Annotations
RoomEx introduces new annotations which can be used on classes or properties.
Relation annotations:
Relation annotations can be used on properties in entity classes (annotated with @Entity). The type of these properties must also be an entity or a MutableList of an entity.
DAO annotations:
The @DaoEx annotation can only be used on abstract classes which inherit from RoomExDao<T>. It informs RoomEx to create a Room @Dao class, which should inherit the annotated class.
The @AutoDao annotation can only be used on entity classes (annotated with @Entity). It informs RoomEx to automatically create a @DaoEx class, with the default operations defined in ICRUD<T>.
Other annotations:
The @RoomExDb annotation can only be used on a single abstract class. It informs RoomEx to use the annotated class as a base type for the resulting RoomExDatabase class.