Skip to content

How to convert enums? #23

@fabiohbarbosa

Description

@fabiohbarbosa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions