Emmanuel Bernard I really need help with this one. This is all your code and you can do this way quicker than I can. There is a test that illustrates the problem : org.hibernate.jpa.test.metamodel.MappedSuperclassType2Test