Per Scott's advice, I've tried with Hibernate 5.0.9 and it appears to resolve the issue. I still see the error in 5.1, though.