-->
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: disable cglib with nonstandard hibernate.properties
PostPosted: Mon Jul 05, 2004 9:00 am 
Newbie

Joined: Wed Aug 27, 2003 2:43 am
Posts: 19
Location: Paris
Hi,

I use 'my.hibernate.properties' -- not the standard 'hibernate.properties' -- as Hibernate configuration filename.

I want to disable CGLIB for debugging purposes. I add to my.hibernate.properties the line:

Code:
hibernate.cglib.use_reflection_optimizer=false


My code for building a Configuration object is:

Code:
Properties fileProps = new Properties();
InputStream is = class.getResourceAsStream("/my.hibernate.properties");
props.putAll(fileProps);

Configuration _hibernateConf  = new Configuration()
               .setProperties(props)
               .addClass(Myclass1.class)
               .addClass(Myclass2.class)
...

CGLIB does not get disabled. The only workaround I found was to create a standard hibernate.properties with the disabling line, then it works ok.

Regards,
Adrian.


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.