You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETYPEmonetary_amountAS (amount numeric, currency CHAR(3));
CREATETABLEtransaction (
transaction_id bigintNOT NULL,
value_date timestamp without time zoneNOT NULL,
amount monetary_amount NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
There's a POJO (record) accepting constructor in the generated TransactionRecord class like this:
There is no getter called getAmount() in a Java record for a property called amount. Instead, we should call the method amount() based on the property name, directly. Curiously, this is being done in the constructor for MonetaryAmountRecord !
The text was updated successfully, but these errors were encountered:
With this schema:
There's a POJO (record) accepting constructor in the generated
TransactionRecord
class like this:There is no getter called
getAmount()
in a Java record for a property called amount. Instead, we should call the methodamount()
based on the property name, directly. Curiously, this is being done in the constructor forMonetaryAmountRecord
!The text was updated successfully, but these errors were encountered: