-->
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.  [ 4 posts ] 
Author Message
 Post subject: CGLIB problem??
PostPosted: Thu Mar 11, 2004 12:11 pm 
Newbie

Joined: Thu Mar 11, 2004 5:39 am
Posts: 13
Hi,
if have set hibernate.cglib.use_reflection_optimizer=false in hibernate.properties. I know it is correctly taken into account because when hibernate starts it doesn't output "Using CGLIB...".
I have a bean which is described in the mapping file as:

<hibernate-mapping>
<class name="Bean" table="TABLE_NAME" lazy="true">
.
.
.
.
</class>
</hibernate-mapping>

When Hibernate starts, it is looking for CGLIB classes...to enhance the class...
I thought setting hibernate.cglib.use_reflection_optimizer=false should disable code enhancement?

I'm I wrong somewhere???


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 11, 2004 3:56 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
You need to drop lazy="true" if you do not want to use proxies, optimizer is used to optimize hibernate code.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 4:06 am 
Newbie

Joined: Thu Mar 11, 2004 5:39 am
Posts: 13
ok, that is true, but then I don't understand the effect of hibernate.cglib.use_reflection_optimizer=false ...
any clue?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 6:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
hibernate.cglib.use_reflection_optimizer=false Just forces Hibernate to use plain old Java reflection for property access in place of cglib-optimized reflection.


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

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.