metamodel branch with the same fix is at https://github.com/scottmarlow/hibernate-orm/tree/metamodel_HHH-7850 (will push master later)
metamodel branch with the same fix is at https://github.com/scottmarlow/hibernate-orm/tree/metamodel_HHH-7850 (will push master later)