Join Slack
Powered by
I'd suppose it's not possible to use a DataTypeCon...
# komapper
d
dave08
02/28/2023, 2:44 PM
I'd suppose it's not possible to use a DataTypeConverter to map a field type to a sealed class instance based on two fields in the database?
t
Toshihiro Nakamura
02/28/2023, 11:46 PM
That is impossible. But what about using Embedded Value that implements a sealed interface? In the linked example, the Money class would implement the interface.
https://www.komapper.org/docs/reference/entity-class/#komapperembedded
15
Views
Open in Slack
Previous
Next