-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can I replace the default cglib enhancer with my own?
PostPosted: Sun May 20, 2007 3:17 am 
Beginner
Beginner

Joined: Mon Apr 24, 2006 10:42 am
Posts: 23
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.