I've executed the test case from the pull request agaist master(5.1.0-SNAPSHOT) https://github.com/hibernate/hibernate-orm/pull/1106/files#diff-7329a72ad9e1bafacdc78b33e834c126R1
And it still in 5.1.0-SNAPSHOT
But I'm not able to change this bug