-->
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: javassist problem
PostPosted: Thu Feb 12, 2009 12:34 pm 
Newbie

Joined: Mon Jun 09, 2008 3:36 am
Posts: 4
Hello,

I would like in Our project witch Hibernate 3.2.5 switch cglib to javassist.
Hibernate configuration is stored in file myProject.properties and load
using:


...
AnnotationConfiguration lvConf = new AnnotationConfiguration();
lvConf.setProperties(pmHbProperties);


In properties file I wrote:
hibernate.bytecode.provider=javassist

but Hibernate still is using cglib (in properties is property hibernate.bytecode.provider=javassist).

javassist is using only when I set system property before conf:

System.setProperty(Environment.BYTECODE_PROVIDER,"javassist");
AnnotationConfiguration lvConf = new AnnotationConfiguration();


Is this Hibernate bug ?
Can I do this by properties file ?
I can't upgrade HB to 3.3.1

thanks in advance
EN


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.