[TEXO][Xcore] Generating JPA Entities from Xcore [message #1220353] |
Wed, 11 December 2013 04:21  |
Eclipse User |
|
|
|
Hi All,
I'm trying to use Xcore together with Texo. After creating Xcore file I've created accompanying ecore file (using EMF Generator Model) as described on Xcore page. From such generated ecore file I try to invoke Texo (i.e. Texo / Generate Model + DAO Code) but then I got error:
Diagnosis of platform:/resource/org.ngo.help.sample.model/model/model.ecore#/
The feature 'eType' of 'platform:/resource/org.ngo.help.sample.model/model/model.ecore#//Library/name' contains an unresolved proxy 'platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString'
The feature 'eAttributeType' of 'platform:/resource/org.ngo.help.sample.model/model/model.ecore#//Library/name' contains an unresolved proxy 'platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString'
After looking into generated ecore file I see that there are local references to the file system:
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" eType="ecore:EDataType ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
And when looking into examples of ecore files provided with Texo, it looks quite different, e.g.:
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
I manualy edited ecore file to use these global addresses instead of the local ones and now generation with Texo works. How to force generation of ecore from Xcore file so that it references Ecore model from the global address?
Cheers,
Dominik
|
|
|
|
|
|
|
|
Re: [TEXO][Xcore] Generating JPA Entities from Xcore [message #1290510 is a reply to message #1289762] |
Thu, 10 April 2014 03:17   |
Eclipse User |
|
|
|
Hi Moritz,
The past days I have picked up the xcore integration, trying to get a working build with improved xcore handling. Xcore
works locally for me, but just not on the build server. I will update the issue when it runs through, am on it.
gr. Martin
On 04/09/2014 06:37 PM, Moritz Höser wrote:
> Hi Martin,
>
> I ran into the same issue and tried the newest stable and nightly version, but without luck.
>
> Could you have a second look, please?
>
> Also, I read somewhere in the Texo wiki pages that generating code from an Xcore file already works for you. Do you have
> any plans to release a version with this change? That would really come in handy. Thank you.
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
|
|
Re: [TEXO][Xcore] Generating JPA Entities from Xcore [message #1386534 is a reply to message #1386496] |
Wed, 18 June 2014 03:32  |
Eclipse User |
|
|
|
The posts on the forum are automatically synced with the newsgroup, so works fine :-).
gr. Martin
On 17-06-14 22:49, Anton Hughes wrote:
> Thanks Martin, greatly appreciated.
>
> Where do I find the newsgroup?
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.04038 seconds