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

TYPE_USE annotated collections and elements fail metamodel generation.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.17, 5.3.0.Final
    • Fix Version/s: 5.2.18, 5.3.1
    • Component/s: hibernate-jpamodelgen
    • Labels:
      None
    • Environment:
      JDK8, JDK9

      Description

      While HHH-12011 Closed specifically targeted arrays, collections are also susceptible to the same problem. The following illustrates one additional example of where TYPE_USE creates problems with metamodel generation:

      @ElementCollection
      @NotNull
      private Map<@NotNull Integer, @NotNull byte[]> doorCodes;
      
      @ElementCollection
      @NotNullAllowed
      private Set<@NotNull String> computerSerialNumbers;
      
      @ElementCollection
      @NotNull
      private List<@NotNull String> employeeNames;
      
      @ElementCollection
      @NotNull
      private List<@NotNull Room> rooms;
      

      I'm also checking other variants but I have not yet found any others beyond what was identified in HHH-12011 Closed and the above.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: