-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
How can I map a single Scala value to multiple columns in the database? For example:
Consider mapping class Transaction
as defined below:
case class Transaction(time: Date, amount: MonetaryValue)
Where MonetaryValue is defined as:
case class MonetaryValue(amount: BigDecimal, currencyCode: String)
to a table like so:
transactions:
time datetime
amount decimal
currency_code varchar
Looking at the code, ColumnType
is sealed
so not sure how something like this would be possible.
Metadata
Metadata
Assignees
Labels
No labels