-->
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: After bytecode enhancement, any properties to set?
PostPosted: Wed Aug 17, 2011 7:40 pm 
Beginner
Beginner

Joined: Thu Dec 29, 2005 12:08 pm
Posts: 31
Location: Acton, MA
EclipseLink requires that if you statically enhance your classes you need to make sure you include the persistence.xml property named "eclipselink.weaving" and set it to the value "static": http://wiki.eclipse.org/Using_EclipseLi ... A_Entities

I know that Hibernate frowns on bytecode enhancement. Nevertheless it is offered: http://docs.jboss.org/hibernate/core/3. ... tTask.html

If I use it, do I need to add any properties to persistence.xml or hibernate.properties? None of the documentation seems to indicate that I do.

I did notice the cryptically named hibernate.bytecode.use_reflection_optimizer property: http://docs.jboss.org/hibernate/core/3. ... n-optional

Since I've already enhanced my classes at build time, I want to make sure that Hibernate doesn't try to then enhance them or do anything fancy at runtime. Do I need to do anything explicit?

Thanks,
Laird


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.