QueryMoney
annotation class QueryMoney(val currency: String = "", val currencyField: String = "", val scale: Int = -1)
Declares a numeric field an amount of money, in exactly one of a fixed ISO 4217 currency or the currency held by the sibling string field currencyField (a property of the same object or element):
@field:QueryMoney(currency = "CNY"): scale defaults to the currency's standard fraction digits;@field:QueryMoney(currencyField = "currency", scale = 2): scale is required.
A field has one semantic type, so this cannot combine with QueryTemporal, QueryDecimal, QueryDuration or QueryReference.