Hibernate is not persisting the hierarchy when using Inheritance strategy JOINED with Batch size

Description

Hibernate is not persisting the hierarchy when using Inheritance strategy JOINED and Batch size > 1. It is weird because it prints the SQL in the console, but just the first entity is persisted (the root entity), the other (the child) has the insert printed but nothing happens at database level.

Here are some information regarding the configuration:

The entities:

The test:

Also, here you will find the link to the test case following the template:
https://github.com/thiagohora/hibernate-test-case-issue-Inheritance-strategy-joined

Environment

None

Status

Assignee

Gail Badner

Reporter

Thiago Hora

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.12
5.2.14
5.4.0
5.4.4

Components

Affects versions

Priority

Major
Configure