-->
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.  [ 3 posts ] 
Author Message
 Post subject: how to set "cglib.use_reflection_optimizer=false"
PostPosted: Tue Dec 23, 2003 4:58 am 
Beginner
Beginner

Joined: Wed Oct 29, 2003 5:27 am
Posts: 30
all the posts and faqs here introduces how to set "cglib.use_reflection_optimizer=false" in the file "hibernate.property".

I tried to set "cglib.use_reflection_optimizer=false" in hibernate.cfg.xml as follows:
Code:
<hibernate-configuration>
   <session-factory>
      <property name="hibernate.cglib.use_reflection_optimizer">false</property>
      <!-- Mapping files -->
      <mapping resource="com/hhy/demo/DemoID.hbm.xml"/>
   </session-factory>
</hibernate-configuration>

But it didn't work.
Can anybody have tried this before? thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 11:14 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is a System level property so you must set in via the hibernate.properties or -D in command line
No other solution

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 8:58 pm 
Beginner
Beginner

Joined: Wed Oct 29, 2003 5:27 am
Posts: 30
epbernard wrote:
This is a System level property so you must set in via the hibernate.properties or -D in command line
No other solution

aha!
I'm using WSAD to develop my project and I don't know how to use coomand line with WSAD.

I tried again to write my hibernate.cfg.xml as follows:
Code:
      <property name="cglib.use_reflection_optimizer">false</property>
     

That's ok!
It means that when you add a property defined in hibernate.property to hibernate.cfg.xml, cut out it's prefix of "hibernate.".


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.