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

Unique constraint of @JoinColumn in @JoinTable not generated

Description

Regression from H4.

No unique constraint is generated for the join columns of this join table:

1 2 3 4 5 6 7 8 9 10 11 @OneToOne(fetch = FetchType.LAZY) @JoinTable( name = "ITEM_SHIPMENT", // Required! joinColumns = @JoinColumn(name = "SHIPMENT_ID"), // Defaults to ID inverseJoinColumns = @JoinColumn(name = "ITEM_ID", // Defaults to AUCTION_ID nullable = false, unique = true) ) protected Item auction;

Environment

5.0.0-SNAPSHOT

Status

Assignee

Andrea Boriero

Reporter

Christian Bauer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.0.0.CR1

Priority

Major