Annotation Type ZerosFilled


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface ZerosFilled
    Used to fill the field with zeros, the amount of zero is what remains to complete the field (Leading zero).

    Applies to properties.

    Example:

      @ZerosFilled
      @Column(length = 4)
      private int number;
     
    It's synonymous of @Stereotype("ZEROS_FILLED") and @Stereotype("RELLENADO_CON_CEROS").
    Since:
    7.1
    Author:
    Chungyen Tsai