Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xbase - Maven Plugin for EntityDSL
Xbase - Maven Plugin for EntityDSL [message #1221986] Thu, 19 December 2013 03:20 Go to next message
Eclipse UserFriend
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 #1221997 is a reply to message #1221986] Thu, 19 December 2013 05:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

did you have a look at the generic xtext maven plugin http://www.eclipse.org/forums/index.php/t/602210/
Re: Xbase - Maven Plugin for EntityDSL [message #1222014 is a reply to message #1221997] Thu, 19 December 2013 06:21 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Xbase - Maven Plugin for EntityDSL [message #1222062 is a reply to message #1222014] Thu, 19 December 2013 10:30 Go to previous message
Eclipse UserFriend
Now i am feeding the file:// uris into XtextResourceSet an compile works fine...

Best Florian
Previous Topic:Xtext - Batch-classes
Next Topic:Xtend To UML generator
Goto Forum:
  


Current Time: Wed Jul 23 15:15:05 EDT 2025

Powered by FUDForum. Page generated in 0.25960 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top