Hi all,
In Hibernate, for the purpose of defining lazy properties fetching, I used to
instrument the Hibernate classes using the typical ant instrumentation task:
<target name="instrumentation" >
| <taskdef name="instrument"
classname="org.hibernate.tool.instrument.InstrumentTask"
classpathref="project.classpath"/>
| <instrument verbose="true">
| <fileset dir="${instrumentation.build.dest}">
| <include name="*.class"/>
| </fileset>
| </instrument>
| </target>
However, I couldn't manage to instrument the Entity Bean POJOS properties which
are annotated as lazy (fetch=FetchMode.LAZY).
I tried to use the typical instrumentation with both following classes:
org.hibernate.tool.instrument.cglib.InstrumentTask
org.hibernate.tool.instrument.javassist.InstrumentTask
however, it didn't work.
Please let me know if there is a solution for that. As I am planning to migrate
Hibernate-based web application to EJB 3.0-based and the application is heavily
based on lazy properties fetching.
Regards,
Zaid
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948158#3948158
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948158
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user