Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Texo - implementing an interface(How to generate jpa code for the model which implements an interface)
Texo - implementing an interface [message #985778] Fri, 16 November 2012 07:06 Go to next message
Pradeep Badiger is currently offline Pradeep BadigerFriend
Messages: 53
Registered: November 2012
Member
Hi,

How do we generate JPA code using texo for the models which implement interfaces?

Thanks,
Pradeep V.B.
Re: Texo - implementing an interface [message #985867 is a reply to message #985778] Fri, 16 November 2012 13:49 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Pradeep,
The epackage annotation model has an option to generate interfaces. Also if an eclass is set to be an interface then it
is generated as an interface.

Btw, afaik JPA and interfaces don't go well together.

gr. Martin

On 11/16/2012 08:06 AM, Pradeep Badiger wrote:
> Hi,
>
> How do we generate JPA code using texo for the models which implement interfaces?
> Thanks,
> Pradeep V.B.


--

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 - implementing an interface [message #985875 is a reply to message #985778] Fri, 16 November 2012 14:18 Go to previous messageGo to next message
Pradeep Badiger is currently offline Pradeep BadigerFriend
Messages: 53
Registered: November 2012
Member
Hi Martin,

I was able to create an interface. Attached is the sample ecore file which has an interface and a concrete class implementing this interface. When i tried generating the jpa/model code, i was able to see only the interface and not the concrete class.

Is there anything that i am missing here?

thanks,
Pradeep V.B.
Re: Texo - implementing an interface [message #985886 is a reply to message #985875] Fri, 16 November 2012 14:56 Go to previous messageGo to next message
Pradeep Badiger is currently offline Pradeep BadigerFriend
Messages: 53
Registered: November 2012
Member
Ahh, silly mistake.. I added the ESuper Type as the interface and now it generates both classes. But i dont see the operations generated. Is that something missing?
Re: Texo - implementing an interface [message #985893 is a reply to message #985886] Fri, 16 November 2012 15:21 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Pradeep,
Operations are currently not supported (i.e. not generated) by Texo. There is no obstacle to implement it other than
time/resources though...

gr. Martin

On 11/16/2012 03:56 PM, Pradeep Badiger wrote:
> Ahh, silly mistake.. I added the ESuper Type as the interface and now it generates both classes. But i dont see the
> operations generated. Is that something missing?


--

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
Previous Topic:[Teneo] Use objects in a query later on
Next Topic:Call EMF Compare
Goto Forum:
  


Current Time: Thu Mar 28 23:09:58 GMT 2024

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

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

Back to the top