Uploaded image for project: 'Hibernate ORM'
  1. HHH-8841

Hibernate Envers SchemaGenerated Enumerated.STRING

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hibernate-envers
    • Labels:
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      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,

        Attachments

          Activity

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: