Annotation Interface NumberFormat


@Retention(RUNTIME) @Target({TYPE,METHOD,FIELD}) @Inherited public @interface NumberFormat
Specifies a format pattern() and optional decimalSeparator() and groupingSeparator() for an entity attribute of the Number type.
  • Element Details

    • decimalSeparator

      String decimalSeparator
      Decimal separator. If not specified, will be obtained from FormatStrings for locale-dependent formatting, or from server default locale for locale-independent formatting.
      Default:
      ""
    • groupingSeparator

      String groupingSeparator
      Grouping separator. If not specified, will be obtained from FormatStrings for locale-dependent formatting, or from server default locale for locale-independent formatting.
      Default:
      ""