Xbase - Maven Plugin for EntityDSL [message #1221986] |
Thu, 19 December 2013 03:20  |
Eclipse User |
|
|
|
Hi,
i have been writing a DSL for JPA-Entities. It is licended under the EPL and will be made available by the marketplace soon.
I tried to write a maven-plugin like Xtend offers. The generated JPA-entity sourcefiles should not be pushed to git repo, but instead a maven plugin should compile them to java files during build.
So i used the xtend-maven-plugin as a cheatsheet and implemented the plugin. So far, it works fine, but i got one issue i can not solve. Crossreferences to different resources can not be resolved. Crossreferences contained in the same resources as treated properly. For instance if A.entitymodel has a crossrefence to B.entitymodel, the reference can not be resolved. Resource A and B are contained in the sames ResourceSet.
I debugged for days now and maybe i got a problem with proxy resolution.
What did i do:
For instance the inheritance of entities (entity Customer extends Base). I used opposite references in ecore model. The "superType" reference is "resolveProxies==false" and "subTypes" reference is defined as "transient==true" and "resolveProxies==true".
I think that this reference causes the problem.
Any ideas how to solve it?
Best Florian
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25960 seconds