Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » mdt/ocl or emf query/ocl?
mdt/ocl or emf query/ocl? [message #1280183] Sat, 29 March 2014 23:28 Go to next message
chadi assem is currently offline chadi assemFriend
Messages: 26
Registered: March 2012
Junior Member
Hi,
I want to evaluate ocl queries on complex emf models but I am confused about
the ocl implementation that I have to use, should I use the mdt ocl or the
emf query ocl? what is the difference between them in the context of quering
emf models?
thanx
Re: mdt/ocl or emf query/ocl? [message #1280551 is a reply to message #1280183] Sun, 30 March 2014 14:34 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4154
Registered: July 2009
Senior Member
Hi

EMF Query gives a thin SQL like layer on top of Eclipse OCL (aka
MDT/OCL). I don't find it helpful; it gives you extra dependencies and
IMHO a confusing abstraction; OCL is not SQL.

I recommend using the OCL facade directly. See examples in the bundled
documentation.

If you want to persist your queries you may want to use the OCLinEcore
editor to persist them in your Ecore model, or the Complete OCL editor
to persist them in a complementary document.

Regards

Ed Willink


On 29/03/2014 23:28, Sohaib wrote:
> Hi,
> I want to evaluate ocl queries on complex emf models but I am confused
> about the ocl implementation that I have to use, should I use the mdt
> ocl or the emf query ocl? what is the difference between them in the
> context of quering emf models?
> thanx
Previous Topic:uml:Extension support
Next Topic:Problem using OCLType in stereotype invariant
Goto Forum:
  


Current Time: Wed Nov 26 13:19:47 GMT 2014

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

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