When I Extends DefaultRevisionEntity, the eclipse compiler gives me the following error : The return type is incompatible with DefaultRevisionEntity.getId()
This is The class:
package br.com.siq.gqfweb.sistema; import javax.persistence.Entity; import org.hibernate.envers.DefaultRevisionEntity; import org.hibernate.envers.RevisionEntity; @Entity @RevisionEntity(AuditoriaRevEntityListener.class) public class AuditoriaRevEntity extends DefaultRevisionEntity { }
I Solved the problem, im My project has a aspect with override the getId with class has @entity, i removed and it worked
You can close this post