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:
Also, here you will find the link to the test case following the template:
The issue seems to be unique not only to the use of JOINED inheritance and batch_size > 1 but also to the use of the legacy ID generation strategy (disabling normal generation using id.new_generator_mappings="false"). Also found that when several entities are persisted in a transaction all but the final entity seem to be persisted correctly.
But in the case of Mysql, this property is used to make hibernate use the native auto_increment strategy, no?
, this is a duplicate of HHH-12968. I'll use to backport to 5.3.