Closed detomarco closed 6 months ago
Thanks for reaching out. DatabaseClient
is part of Spring Framework. It isn't opinionated about enum representations (ordinal vs. name) therefore the value is passed on directly as-is.
I suggest reaching out to Spring Framework and filing a ticket for discussion.
Furthermore, you can use Postgres Enum Types to serialize Java enums to Postgres enums if you wish. However, that requires a bit of driver configuration.
It seems like entities cannot have enum fields when saving using
bindProperties
orbind
APIsSpring boot 3.2.2
This test throws this exception
Would it be possible to support enumeration in
bindProperties
api?Full code here