Skip to content

Wrong type definition for Duration due to converter #4146

Open
@geliotropv

Description

@geliotropv

When writing a duration type parameter to the database, Spring defines it as a String after using converters, it can be seen that JRS310Converters.DurationToStringConverter is being used, but I need its real type and not a modified one.

Now I have to write a strange converter that is used when writing to the database. I need exactly its type. further it is used for custom codec
@WritingConverter
class DurationToDurationConverter : Converter<Duration, Duration> {
override fun convert(source: Duration): Duration = source
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions