Andi Huber created CAUSEWAY-4005:
------------------------------------
Summary: [Metamodel] Qualified ValueSemantics is not found when
used on a Property of type long
Key: CAUSEWAY-4005
URL: https://issues.apache.org/jira/browse/CAUSEWAY-4005
Project: Causeway
Issue Type: Bug
Components: Core
Reporter: Andi Huber
Assignee: Andi Huber
Fix For: 4.0.0
As the override is not found, the metamodel falls back to displaying a the 'not
found' message.
{code:java}
@Bean
@Qualifier("noThousandsSeparator")
LongValueSemantics longValueSemantics() {
return new LongValueSemantics() {
@Override
protected void configureDecimalFormat(final Context context, final
DecimalFormat format, final FormatUsageFor usedFor) {
super.configureDecimalFormat(context, format, usedFor);
format.setGroupingUsed(false);
}
};
}
{code}
Used like:
{code:java}
@Property(editing=Editing.DISABLED)
@ValueSemantics(provider = "noThousandsSeparator")
@Getter @Setter
private long token;
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)