Xbase - Maven Plugin for EntityDSL [message #1221986] |
Thu, 19 December 2013 08:20 |
|
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
|
|
|
|
Re: Xbase - Maven Plugin for EntityDSL [message #1222014 is a reply to message #1221997] |
Thu, 19 December 2013 11:21 |
|
Thanks for the hint!
Got a new result. StateBasedContainer#filterByURI seems to be the problem.
It tries to find platform:/resource uris. But only file:// uris for the entity models are available. If i batch the filter, then crossreferences can be resolved.
Will take a look at the generic maven plugin.
Thanks, Florian
|
|
|
|
Powered by
FUDForum. Page generated in 0.04563 seconds