I'm reading over the docs custom generators and data type rewrites. It seems like it has a lot of flexibility. But is it possible to combine two db fields into one?
For example, for foreign exchange, I'd like to store two fields
budget.value, budget.currency
Could I somehow have JOOQ convert this to
Value getMonetaryValue() {
return Value(this.value, this.currency);
}
Where in this case Value
is a custom enum that I've created to support both value and currency.