This was also reported in https://hibernate.atlassian.net/browse/HHH-14014, but with a proper test case. I think both are the same bug, so we could probably close this one.