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

annotation @ListIndexBase has no runtime retention, so it is not available through AnnotationBinder configuration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.7
    • Fix Version/s: 5.0.0.CR1, 4.3.11
    • Component/s: hibernate-core
    • Labels:
      None
    • Environment:
      Hibernate final 4.3.7
      Postgresql 9.3.6
      jdbc driver 9.3.1103.jdbc41
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      HHH-8163 Closed replaces old hibernate-specific @IndexColumn annotation by use of JPA annotation @OrderColumn + hibernate-specific @ListIndexBase for list base collection relations of entities.

      The ListIndexBase annotation is the only way to set an offset on the list-index position in the collection.

      The annotation @ListIndexBase misses the @Retention(RUNTIME) annotation, so ListIndexBase is not available through java reflexion API and hence not available to AnnotationBinder.

      All the List collection are then 0-indexed base collections

      Find here a simplistic fix for this issue.

      I have seen some tests taht are using this annotation, but don't know if they need to be updated to reflect this fix.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: