Missing StaticModels for envers revision entity
-----------------------------------------------
Key: HHH-7184
URL:
https://hibernate.onjira.com/browse/HHH-7184
Project: Hibernate ORM
Issue Type: Bug
Components: envers
Affects Versions: 4.1.1
Reporter: Sylvain Vieujot
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 :
@StaticMetamodel(CustomRevisionEntity.class)
public abstract class CustomRevisionEntity_ extends
org.hibernate.envers.DefaultRevisionEntity_ {
public static volatile SingularAttribute<CustomRevisionEntity, String> ipAddress;
}
The compiler generates :
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project
intranet: Compilation failure: Compilation failure:
[ERROR] Hibernate JPA 2 Static-Metamodel Generator 1.1.1.Final
[ERROR]
/home/sylvain/My/Progs/Java/REIT.intranet/target/generated-sources/annotations/ae/reit/intranet/persistence/CustomRevisionEntity_.java:[7,72]
error: cannot find symbol
[ERROR] package org.hibernate.envers
[ERROR]
/home/sylvain/My/Progs/Java/REIT.intranet/target/generated-sources/annotations/ae/reit/intranet/persistence/CustomRevisionEntity_.java:[7,72]
error: cannot find symbol
as it can not fild : org.hibernate.envers.DefaultRevisionEntity_
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira