We're updating the issue view to help you get more done. 

Hibernate Envers SchemaGenerated Enumerated.STRING

Description

AFFECTED VERSION

  • 4.2.8.Final

WORKAROUND

  • Rollback to 4.2.0.Final

PROBLEM

EnversSchemaGenerator generated Audit tables with Enumerated.ORDINAL instead of String for Audit Tables ONLY.

Example

Hibernate annotation mapping:

@Enumerated(EnumType.STRING)
private AttachmentDirection direction;

Generated SQL:

create table ATTACHMENTS (
..
direction varchar(255),

create table ATTACHMENTS_AUD (
..
direction integer,

Environment

None

Status

Assignee

Unassigned

Reporter

Carl Molemans

Labels

Components

Priority

Major