Hi folks,
I know this is a widely discussed issue but probably someone can shed some light on this confusing situation.
Our problem is as follows: To have our data model extendable and providing type savety we set up an inheritance hierarchy where the entity classes are backed with interfaces specifying all required methods. Only within the first two levels of the hierarchy the interfaces define method signatures. All interfaces in subsequent levels of the hierarchy are empty.
We make heavy use of proxying/lazy loading and polymorphism in the app. So the mapping files specify the interface of each entity class for a proxy. Unfortunately, javassist is not very co-operative and throws exceptions.
We use plain Hibernate from the hibernate3.jar of version 3.3.2.GA and also have javassist.jar included. We've tried with javassist 3.8.0.GA, 3.9.0.GA, and 3.11.0.GA - no difference.
The message in the exceptions indicates the "duplicate method"-problem. This was quite surprising since this issue seemed to be settled since javasisst 3.4 according to the bug tracker.
What can we do to get around this? We did not manage to either make javassist work or switch to cglib as an alternative. There seems to be no setting in the Hibernate configuration (we do programmatic configuration) to achieve this.
CU Froestel
_________________ Have you tried turning it off and on again? [Roy]
|