Andreas Asplund thank you for the reproducer. After clearing it up a bit, I've included your test in my proposed change for https://hibernate.atlassian.net/browse/HHH-16414 which should fix this problem too.