Hi all,
I'd like to be able to replace the default cglib Enhancer used by Hibernate with my own. As far as I could tell, this happens in CGLIBLazyInitializer.getProxyFactory(). However, I could not find any way to modify/replace any of the components involved in this process.
Is there any way to do so?
The reason I'd like to do that, is that the Enhancer, by default, will not use a private no-args constructor of the persistent entity class, and I would like to change that. I should be able to change that by subclassing Enhancer and overriding the filterConstructors() method.
Thanks in advance,
Naaman
|