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

envers @ElementCollection Map support failing -- nullable KEY

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.

Environment

sybase157

Status

Assignee

Lukasz Antoniak

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major