spring-projects / spring-projects/spring-data-relational
Write an article about Enums
Open
@schauder is already working on this.
Since Feb 3, 2022.
type: task
- Dominant language
- Java
- Stars
- 827
- Forks
- 394
- PR merge metrics
- No merged PRs in 30d
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 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.