NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Canonical Metamodel with entities in muptiple projects

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Ralf_Jonas



Joined: 27 Feb 2013
Posts: 1
Location: Germany

PostPosted: Wed Feb 27, 2013 11:57 am    Post subject: Canonical Metamodel with entities in muptiple projects Reply with quote

Hi,

I'm developing a J2EE application and divided the entity beans (due to plugin design cases) in several 'Java Class Library' projects (ant, not maven). Each of these projects has it's own eclipse metamodel compiler for generating metamodel classes enabled and it works nearly perfectly.

Unfortunately each project is metacompiled on its own without respect to the other projects. That wouldn't harm at all if the entities where not derived from each other. That means, each generated class does not become a derivate, but a simple class. So it doesn't know any fields of its super classes. Sad

I figured out that in the build-impl.xml is a section where a 'dirset' is specified as "@{gensrcdir}". If I replace this by a path to the source path to the project containing the super classes, all(!) metaclasses are compiled correctly. But first of all I don't know where to specify this in the right place (because changes in the build-impl.xml are overriden by netbeans and furthermore I cannot update them in the SVN repository). Second it's definitely wrong to have ALL compiled metaclasses in the project. I only want classes from the current project metacompiled into it.

I think the right way is to specify a classpath to the eclipse Canonical Metacompiler, but I can't make this work. Any suggestions? I'm stuck.

Thanks in advance
Ralf
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo