-->
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: Hibernate byte code intrumentaion for property lazy loading
PostPosted: Thu Jul 12, 2012 6:33 am 
Newbie

Joined: Sun Jul 08, 2012 2:28 am
Posts: 2
Hi,

I am using Hibernate 3.3 in my web application and I want to do lazy fetching of individual properties of entity. To enable this feature I need to do bytecode instrumentation.

<target name="instrument" depends="compile">
<taskdef name="instrument" classname="org.hibernate.tool.instrument.InstrumentTask">
<classpath path="${jar.path}"/>
<classpath path="${classes.dir}"/>
<classpath refid="lib.class.path"/>
</taskdef>

<instrument verbose="true">
<fileset dir="${testclasses.dir}/org/hibernate/auction/model">
<include name="*.class"/>
</fileset>
</instrument>
</target>


My project is in MyEclipse IDE and I dont know how to add above ant script to my project.
Can anyone please let me know how can I add this any script to myeclipse web app? Or is there any other way to run this ant script externally?

Thanks,
Rohit



Thank,
Rohit


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.