Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce EnumWriteSupport for simpler pass-thru of enum values #411

Closed
mp911de opened this issue Jul 22, 2020 · 0 comments
Closed

Introduce EnumWriteSupport for simpler pass-thru of enum values #411

mp911de opened this issue Jul 22, 2020 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Jul 22, 2020

Right now it's not obvious that Spring Data converts enum values to String. We should mention this explicitly and add an example how to register a Converter that forces enum values to be retained in their type so that the value is passed to the driver as-is.

@mp911de mp911de added the type: documentation A documentation update label Jul 22, 2020
mp911de added a commit that referenced this issue Aug 6, 2020
We now provide EnumWriteSupport as base class for enum write converters that should be written as-is to the driver.

R2dbcCustomConversions can now also be created from a dialect for easier R2dbcCustomConversions creation.
@mp911de mp911de added this to the 1.2 M2 (2020.0.0) milestone Aug 6, 2020
@mp911de mp911de closed this as completed Aug 6, 2020
@mp911de mp911de added type: enhancement A general enhancement and removed type: documentation A documentation update labels Aug 6, 2020
@mp911de mp911de changed the title Improve documentation on how to use Postgres EnumCodec with Spring Data Introduce EnumWriteSupport for simpler pass-thru of enum values Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant