org.hibernate.test.annotations.quote.QuoteTest violates unique key constraint on some DBs

Description

Two tests in QuoteTest (testQuoteManytoMany, testDoubleQuoteJoinColumn) each create one instance of User which has house3=null. House3 column has a @UniqueConstraint. On some databases, unique (without not-null) constraint allows multiple null values to be in the column, but some databases disallow it (DB2, Sybase, MSSQL..). On these databases, testQuoteManytoMany fails - it violates the constraint, because testDoubleQuoteJoinColumn persisted a User with house3=null.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Jan Martiška

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure