Missing generated JPA static metamodel class for envers revision entity

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.

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Sylvain Vieujot

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Components

Affects versions

5.0.0.Final

Priority

Major
Configure