Don't waste your time with anything other than the ant built,  all these
plugins and such will drive you mad tying to troubleshoot issues completely
unrelated to enhancement. I learned this the hard way because I was trying
to avoid using ant, it's an apache project so they expect you to use ant. 

Chris



-----Original Message-----
From: Joel Halbert [mailto:j...@su3analytics.com] 
Sent: Monday, 22 November 2010 11:52 PM
To: users@openjpa.apache.org
Subject: OpenJPA Eclipse Tooling plugin - missing entity relationships

Hi,

I have installed the OpenJPA Eclipse Tooling plugin, to provide compile time
enhancement.
My source spans two projects, project1 & project2. The code in project2 is
dependent on project1.
I have some entities in project2 that have a ManyToOne attribute, using an
Entity in project1.  e.g.

@Entity
@Access(AccessType.PROPERTY)
Project1Entity {

     private Project2Entity project2Entity;

     @ManyToOne
     public Project2Entity getProject2Entity () {
         return project2Entity;
     }
     public voidsetProject2Entity (Project2Entity e) {
         this.project2Entity = e;
}
}



This used to work fine with runtime enhancement, but it no longer works with
compile time enhancement - when the Project1Entity table is created it is
now missing the Project2Entity field.

Could this be related to the fact that my entities are across two distinct
eclipse projects? Both projects have the openjpa Bytecode enhancer set.

Thanks
Joel

Reply via email to