I've created a pull request for this. [1] If it looks good I'd like to get the fix into 5.0.9.
[1] https://github.com/hibernate/hibernate-orm/pull/1296 _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev