Open
Description
- Create an example for storing enums with their ordinal value instead of their name using a conversion to
JdbcValue
. - Create an example for storing enums as Postgres enums. This should be possible by either converting it into a
JdbcValue(String, OTHER)
,JdbcValue(TheEnum, OTHER)
or by creating a conversion in Postgres. See https://stackoverflow.com/questions/40356750/how-do-i-make-java-postgres-enums-work-together-for-update and Can't insert enum: ERROR: column "enumtest" is of type marital_status but expression is of type character varying pgjdbc/pgjdbc#1420
The article should become part of the Spring Data JDBC How To series. See https://spring.io/blog/2022/01/20/spring-data-jdbc-how-can-i-do-a-partial-update-of-an-aggregate-root
Once the blog post is published, relevant SO questions and open issues should receive an answer referencing the article.
For example: https://stackoverflow.com/questions/69901227/how-to-convert-enum-java-to-enum-postgres-via-spring-data-jdbc