This also affects 5.2.1.Final (but you'll have to change the persistence provider to org.hibernate.jpa.HibernatePersistenceProvider in persistence.xml in the provided test)