Based on my bisect with the test:
0c8261b0ae499d8ecc4001892b4cb43539de195a is the first bad commit commit 0c8261b0ae499d8ecc4001892b4cb43539de195a Author: Vlad Mihalcea <mihalcea.vlad@gmail.com> Date: Fri Sep 30 15:45:39 2016 +0300
HHH-9864 Closed - foreign key violation with order_inserts=true and batches with mixed subclass entities
:040000 040000 fb003e8db0c4424b69afc0fd53d268b70dc81c77 5dd86d1a9523d7a4e5f3e017377b4bddd0394cda M hibernate-core
As I look at the code in there it seems (to my perhaps naive eyes) like a more straight-forward approach would be to use a Comparator<BatchIdentifier>?(Put more bluntly: put the logic of imposing an ordering on BatchIdentifier into a comparator instead of inside the self-mutating-nested-loop-walk-backwards-mutate-walk-forwards-mutate approach that's where now? ) |