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

order_inserts causing constraint violation

Description

When a parent entity being referenced by 2 child entites, SQL insert statement of child entity
gets issued first before parent entity, resulting in Referential integrity constrain violation.

This happens when order_inserts is enabled.

https://github.com/hibernate/hibernate-orm/commit/699b50725d1cab1378cc7617bf92920bd7888b5a#commitcomment-24363863

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Skeith Yip

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.10

Components

Affects versions

5.2.11

Priority

Major