Skip to content

Generated vs editable code

CrudCraft distinguishes between files that are regenerated on each build and those intended for manual customization.

Generated

Classes marked with the @CrudCraft:generated comment are produced every time the annotation processor runs. Do not modify these files as your changes will be overwritten.

Editable

When @CrudCrafted(editable = true) is set, concrete subclasses are generated once with the @CrudCraft:editable comment. They are copied into your source tree by the EditableFileTool and can be safely edited.

Understanding this separation ensures your custom logic is preserved while still benefitting from code generation.