| I have moved this to an actual fork of Hibernate: https://github.com/raphw/hibernate-orm - I am getting some checkstyle errors that I have some trouble fixing. IntelliJ does not seem to properly pick up the checkstyle configuration. Is this something anybody has experienced? Otherwise, as for the `BytecodeProvider` contract, the example implementation should work. One issue is that there is no cache yet. Javassist applies a very easy cache based on a WeakMap; this cache is however quite problematic as the referenced value is weakly referenced; any proxy class is therefore collected immediately once there is no alive proxy instance. Is there any need to weakly reference Hibernate bean types? I assume that they are registered somewhere in the Hibernate framework. In this case, it would make sense to drop the weak references alltogether and use a simple map. The weak reference loopkup is quite expensive. |