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

Missing generated JPA static metamodel class for envers revision entity

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.Final
    • Fix Version/s: 5.0.1
    • Component/s: hibernate-envers
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Suitable for new contributors:
      Yes, likely
    • Requires Release Note:
      Affirmative
    • Last commented by a user?:
      true
    • Sprint:

      Description

      When you create a custom Envers RevisionEntity, the Java Annotation processing generates a @StaticMetamodel extending hibernates static model for the DefaultRevisionEntity, but this class is not packaged in envers'jar file :

      The compiler generates :
      @StaticMetamodel(CustomRevisionEntity.class)
      public abstract class CustomRevisionEntity_ extends org.hibernate.envers.DefaultRevisionEntity_

      { public static volatile SingularAttribute<CustomRevisionEntity, String> ipAddress; }

      [INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ intranet —
      [INFO] Compiling 818 source files to /home/sylvain/My/Progs/Repositories/git/reit-intranet/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] last round: true
      /home/sylvain/My/Progs/Repositories/git/reit-intranet/target/generated-sources/annotations/ae/reit/intranet/persistence/CustomRevisionEntity_.java:[10,72] error: cannot find symbol
      [INFO] 1 error
      [INFO] -------------------------------------------------------------

      as it can not find : org.hibernate.envers.DefaultRevisionEntity_

      Hibernate 4.1.1 used to have the same issue.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 20m Original Estimate - 20m
                  20m
                  Remaining:
                  Time Spent - 0.4h Remaining Estimate - 20m
                  20m
                  Logged:
                  Time Spent - 0.4h Remaining Estimate - 20m
                  0.4h