@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface NumberFormat
pattern()
and optional decimalSeparator()
and groupingSeparator()
for
an entity attribute of the Number
type.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
pattern
Pattern as described for
DecimalFormat . |
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
decimalSeparator
Decimal separator.
|
java.lang.String |
groupingSeparator
Grouping separator.
|
public abstract java.lang.String pattern
DecimalFormat
.public abstract java.lang.String decimalSeparator
FormatStrings
for locale-dependent formatting, or from server default locale for locale-independent formatting.public abstract java.lang.String groupingSeparator
FormatStrings
for locale-dependent formatting, or from server default locale for locale-independent formatting.