Skip to content

Annotations Overview

Erupt's annotation system is organized along two main lines: class-level and field-level. @Erupt defines the entity's overall behavior, while @EruptField declares how each field is displayed and edited. Feature annotations attach to them as attributes, forming the hierarchy below.

@EruptScanEntryPlaced on the boot class to declare package paths to scan for Erupt entities
@EruptClassClass-level annotation defining entity behavior and page capabilities
@EruptFieldFieldField-level annotation declaring how a field is displayed and edited
  • views =@ViewTable-column display configuration
  • edit =@EditEdit-form configuration
    • type =EditType30+ component types, see Components overview
    • search =@SearchSearch bar configuration
    • onchange =OnChangeData-change linkage, update other fields in real time
    • dynamic =@DynamicDynamic component control

Recommendations

  1. Start with the basics — understand @Erupt first, then move on to feature annotations.
  2. Permissions first — configure @Power to keep your data safe.
  3. Polish your layout with @Layout for a better UX.
  4. Master @Drill and @LinkTree to model complex data relationships.
  5. Combine @View and @Edit for fine-grained control over display and editing.
  6. Use @Dynamic to build conditional, interactive forms.

Contributors

The avatar of contributor named as YuePeng YuePeng
The avatar of contributor named as Claude Opus 5 (1M context) Claude Opus 5 (1M context)

Changelog

Released under the Apache-2.0 License.