DefaultRevisionEntity

Hi everyone

I hope that someone maintaining Envers could help me.

Because DefaultRevisionEntity id is only a “int id” it becomes a int4 in Postgresql. I want this to be a “Long id” which would make it an int8 in Postgresql which is more suitable for entities seing a lot of changes.

I have tried to create a custom class as suggested here: https://hibernate.atlassian.net/browse/HHH-6615.

The problem is that now my “org.hibernate.envers.track_entities_changed_in_revision: true” and “org.hibernate.envers.global_with_modified_flag: true” are ignored.

It looks like the problem lies within RevisionInfoConfiguration around line 356 where “DefaultTrackingModifiedEntitiesRevisionEntity.class.isAssignableFrom( revisionInfoClass )” is evaluated.

See: https://github.com/hibernate/hibernate-orm/blob/d8faee0d2c156e48a5d160385adeb51e49255c22/hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/RevisionInfoConfiguration.java#L356

Anyone know how to overcome this problem ?

Best regards

Jimi