6 Replies Latest reply on Oct 6, 2010 2:49 AM by Ondrej Medek

    Automatic Bytecode Instrumentation?

    Jason Long Master

      I am using the following to instrument my classes

      <taskdef name="instrument"
       classname="org.hibernate.tool.instrument.InstrumentTask">
       <classpath refid="classpath.lib"/>
      </taskdef>
      


      I need this so I can use

       private Double pipeFtCompleted;
       @Basic(fetch = FetchType.LAZY)
       @Formula(value="(select v.sumft from v_state_pipe_completed v where v.id=id)")
       public Double getPipeFtCompleted() { return pipeFtCompleted; }
       public void setPipeFtCompleted(Double pipeFtCompleted) { this.pipeFtCompleted = pipeFtCompleted;}
      


      I started adding a lot of formulas to my data model to simplify complex queries. This worked well until my application took a serious performance hit.

      I like the way that eclipse automically compiles my classes as I edit them. Can JBossIDE be set up to automatically instrument them as well without using the ant script?