Skip to content

Allow type converters to be defined at class-level to allow override of superclass field converters #483

@andyjefferson

Description

@andyjefferson

With a JPA @convert we can then do

public class BaseClass
{
    @Convert(converter=MyConv1.class)
    MyType myField;
}
@Convert(attributeName="myField", converter=MyConv2.class)
public class SubClass
{
    ...
}

This will mean that when checking if a field has a converter we need to go via the ClassMetaData, which will find out for the member, firstly checking for class-level overrides, then member specifications.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions