NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Ralf_Jonas
Joined: 27 Feb 2013 Posts: 1 Location: Germany
|
Posted: Wed Feb 27, 2013 11:57 am Post subject: Canonical Metamodel with entities in muptiple projects |
|
|
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.
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 |
|
 |
|
|
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
|
|