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

How to convert enums? #23

Open
fabiohbarbosa opened this issue Dec 29, 2022 · 0 comments
Open

How to convert enums? #23

fabiohbarbosa opened this issue Dec 29, 2022 · 0 comments

Comments

@fabiohbarbosa
Copy link

fabiohbarbosa commented Dec 29, 2022

Hi, firstly I'd like to say thank you for this library it is very useful.

I'm trying to register custom converters but my Bean is conflicting with an existing bean already registered by lc-spring-data-r2dbc library.

Kotlin code

val converterList: MutableList<Converter<*, *>> = ArrayList()
converterList.add(MyConverter())

return R2dbcCustomConversions(storeConversions, converterList)

Error

The bean 'r2dbcCustomConversions', defined in net.lecousin.reactive.data.relational.mysql.MySqlConfiguration, could not be registered. A bean with that name has already been defined in class path resource [com/capitalise/entities/configs/R2dbcConfig.class] and overriding is disabled.

Any suggestion on how can I register a converter?

I need this in order to converter enums, however, perhaps could have another solution to load and convert enum values.

Thank you.

@fabiohbarbosa fabiohbarbosa changed the title How to registry custom converters? How to convert enums? Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant