spring-data-relational icon indicating copy to clipboard operation
spring-data-relational copied to clipboard

Write an article about Enums

Open schauder opened this issue 3 years ago • 0 comments

  • 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 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

schauder avatar Feb 03 '22 13:02 schauder