I have created a mapping (which is also used in the unit test i have provided) which demonstrates the bug. The mapping can be tested in the hibernate-entitymanager project tests. The issue occurs as soon as an entity manager factory is created.