Annotation Type ReadOnlyFromDTO


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ReadOnlyFromDTO
    Marks an entity attribute as read only when converting from DTOs, optionally for insert and update (default readonly for both)
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean onInsert
      Indicates whether the field is read-only on the first time the entity is persisted
      boolean onUpdate
      Indicates whether the field is read-only when updating the entity
    • Element Detail

      • onInsert

        boolean onInsert
        Indicates whether the field is read-only on the first time the entity is persisted
        Default:
        true
      • onUpdate

        boolean onUpdate
        Indicates whether the field is read-only when updating the entity
        Default:
        true