Due to another issue with ManyToOne proxies I tried to upgrade Hibernate to 3.5.1-Final but ran into a trouble that seemed to be confined only to things like getReference(), etc. Now this exception is being thrown when building the EntityManagerFactory.
What I am seeing is that the entityPersistors in the Hibernate session are all keyed by the mapping's entity-name. In Teneo/EMF's case, the eClass name is the key, but Hibernate tries to use the impl class name as the key.
I found this related bug in bugzila, which acknowledges the same thing but provides a solution that will not fly due to the existing queries.
The first question is whether Teneo works with Hibernate 3.5.x and also what can I do here?