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

Not-null constraint violations after loading entity where required row in secondary table is missing

Description

An entity is defined with a non-optional secondary table. After migrating from an older Hibernate release to Hibernate 5.3, encountering not-null constraint violations (database layer and in bean validation) in various scenarios for properties persisted in the secondary table.

It was discovered that the secondary table was corrupt and rows were missing for one or more entities. Hibernate did not load the invalid entity rows in older Hibernate releases.

Environment

None

Status

Assignee

Gail Badner

Reporter

Stephen Fikes

Worked in

5.1.17

Components

Affects versions

5.3.9

Priority

Major