This issue has been fixed in 5.3.1 by this commit: https://github.com/hibernate/hibernate-orm/commit/01caa5f2b4d5dfee04016d6628a529e437894dcb .