Dmitry Fursevich, have you tried reproducing this problem with any of the Hibernate 5.x branches and SQL Server?