Sendero Lightweight ORM

Class decorator @data

Basic Type Field Decorators

  • @Bool
  • @Byte
  • @UByte
  • ...
  • @autoPrimaryKey

Has One Field Decorator

@HasOne(String className, String fieldName);

Field Decorator Modifiers

  • @no_map
  • @no_setter
  • @privateSetter
  • @protectedSetter
  • @packageSetter
  • @nonNull
  • @unique
  • @nonBlank
  • @minLength
  • @maxLength
  • @minValue
  • @maxValue
  • @regex
  • @primaryKey

Class Mapping Modifiers

  • @no_save
  • @no_remove
  • @classTableInheritance

Hooks

  • bool beforeHttpSet()
  • void afterHttpSet()
  • bool beforeValidation()
  • bool beforeValidationOnCreate()
  • bool beforeValidationOnUpdate()
  • bool validateOnCreate()
  • bool validateOnUpdate()
  • bool afterValidation()
  • bool afterValidationOnCreate()
  • bool afterValidationOnUpdate()
  • bool beforeSave()
  • bool beforeCreate()
  • bool beforeUpdate()
  • void afterCreate()
  • void afterUpdate()
  • void afterSave()
  • bool beforeDestroy()
  • void afterDestroy()

TODO: beforeObjectFieldFind, ifNotObjectFieldFind, afterObjectFieldFind