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

envers @ElementCollection Map support failing -- nullable KEY

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.11, 4.2.0.Final, 4.3.0.Beta1
    • Component/s: None
    • Labels:
      None
    • Environment:
      sybase157
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      Tests failing on sybase157:
      org.hibernate.envers.test.integration.collection.embeddable.EmbeddableMap
      org.hibernate.envers.test.integration.ids.embeddedid.RelationInsideEmbeddableTest

      Example output:

      10:18:27,341 DEBUG SQL:104 - create table EmbMapEnt (id int not null, primary key (id)) lock datarows
      10:18:27,398 DEBUG SQL:104 - create table EmbMapEnt_AUD (id int not null, REV int not null, REVTYPE smallint null, primary key (id, REV)) lock datarows
      10:18:27,452 DEBUG SQL:104 - create table EmbMapEnt_map (EmbeddableMapEntity_id int not null, audComp_description varchar(255) null, audComp_key varchar(255) null, audComp_value varchar(255) null, notAudComp_description varchar(255) null, notAudComp_key varchar(255) null, notAudComp_value varchar(255) null, str1 varchar(255) null, componentMap_KEY varchar(255) null, primary key (EmbeddableMapEntity_id, componentMap_KEY)) lock datarows
      10:18:27,494 ERROR SchemaExport:425 - HHH000389: Unsuccessful: create table EmbMapEnt_map (EmbeddableMapEntity_id int not null, audComp_description varchar(255) null, audComp_key varchar(255) null, audComp_value varchar(255) null, notAudComp_description varchar(255) null, notAudComp_key varchar(255) null, notAudComp_value varchar(255) null, str1 varchar(255) null, componentMap_KEY varchar(255) null, primary key (EmbeddableMapEntity_id, componentMap_KEY)) lock datarows
      10:18:27,494 ERROR SchemaExport:426 - Column 'componentMap_KEY' is part of a primary key constraint and cannot be null.

      The map key ("componentMap_KEY") should not be nullable.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: