I added a new PR illustrating another possible approach: https://github.com/hibernate/hibernate-orm/pull/1137