Uploaded image for project: 'Hibernate ORM'
  1. HHH-10050

AttributeConverter should supports ParameterizedType if autoApply is true

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.Final
    • Fix Version/s: 5.1.0
    • Component/s: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      @Converter(autoApply = true)
      public class AttributeListConverter implements AttributeConverter<List<Attribute>, String> {
       ...
      }
      
      @Converter(autoApply = true)
      public class StringListConverter implements AttributeConverter<List<String>, String> {
       ...
      }
      
      @Entity
      public class Sample {
       ...
      
      private List<String> list = new ArrayList<String>(0);
       ...
      }
      

      list of Sample will be applied with AttributeListConverter not StringListConverter. It seems type of list was ignored.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 5.35h
                  5.35h