I also encountered this Problem. Envers ignores the @JdbcTypeCode Annotation. I have a @MappedSuperclass that defines an id like this:
When exporting the schema through hibernate this creates the actual Entity Tables correctly but envers tries to generate a binary column. The DB dialect I am using is mariadb.
As you can see varchar(36) is used for the "real" entity table as requested. However the audit Table is generated with a binary column which obviously will not work. |