Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » ocl and database(future plans)
ocl and database(future plans) [message #38061] Mon, 19 June 2006 22:00 Go to next message
Eclipse UserFriend
Originally posted by: saya.txesystems.com

Hi,
As elver is going to be part of emft, I would like to know if there is any
plan on generating SQL code for OCL expression in the model. This would
allow us to enforce the constraints inside the database.

Thanks,
Selcuk
Re: ocl and database(future plans) [message #38162 is a reply to message #38061] Tue, 20 June 2006 14:51 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Selcuk,
Maybe the OCL people should also answer this. I have not yet had the
change to really study OCL. From our side this has not more than crossed
our mind at the moment. Also looking at the amount of work we have to do
I am not sure if we will look at this on the short term...

gr. Martin

Selcuk Aya wrote:
> Hi,
> As elver is going to be part of emft, I would like to know if there is
> any plan on generating SQL code for OCL expression in the model. This
> would allow us to enforce the constraints inside the database.
>
> Thanks,
> Selcuk
>

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: ocl and database(future plans) [message #38228 is a reply to message #38162] Tue, 20 June 2006 19:19 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi,

I suppose that there is a class of constraints that could be transformed to
very simple SQL expressions (JET2 comes to mind ...), and probably there is
a class of OCL constraints that cannot be so easily transformed to SQL.
More to the point, there is much that SQL can do that has no analogue in
OCL.

In any case, the EMFT OCL provides an AST metamodel that should support any
such transformations. There is no plan in EMFT OCL to generate SQL.

Cheers,

Christian


Martin Taal wrote:

> Hi Selcuk,
> Maybe the OCL people should also answer this. I have not yet had the
> change to really study OCL. From our side this has not more than crossed
> our mind at the moment. Also looking at the amount of work we have to do
> I am not sure if we will look at this on the short term...
>
> gr. Martin
>
> Selcuk Aya wrote:
>> Hi,
>> As elver is going to be part of emft, I would like to know if there is
>> any plan on generating SQL code for OCL expression in the model. This
>> would allow us to enforce the constraints inside the database.
>>
>> Thanks,
>> Selcuk
>>
>
Re: ocl and database(future plans) [message #581246 is a reply to message #38061] Tue, 20 June 2006 14:51 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Selcuk,
Maybe the OCL people should also answer this. I have not yet had the
change to really study OCL. From our side this has not more than crossed
our mind at the moment. Also looking at the amount of work we have to do
I am not sure if we will look at this on the short term...

gr. Martin

Selcuk Aya wrote:
> Hi,
> As elver is going to be part of emft, I would like to know if there is
> any plan on generating SQL code for OCL expression in the model. This
> would allow us to enforce the constraints inside the database.
>
> Thanks,
> Selcuk
>

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: ocl and database(future plans) [message #581295 is a reply to message #38162] Tue, 20 June 2006 19:19 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi,

I suppose that there is a class of constraints that could be transformed to
very simple SQL expressions (JET2 comes to mind ...), and probably there is
a class of OCL constraints that cannot be so easily transformed to SQL.
More to the point, there is much that SQL can do that has no analogue in
OCL.

In any case, the EMFT OCL provides an AST metamodel that should support any
such transformations. There is no plan in EMFT OCL to generate SQL.

Cheers,

Christian


Martin Taal wrote:

> Hi Selcuk,
> Maybe the OCL people should also answer this. I have not yet had the
> change to really study OCL. From our side this has not more than crossed
> our mind at the moment. Also looking at the amount of work we have to do
> I am not sure if we will look at this on the short term...
>
> gr. Martin
>
> Selcuk Aya wrote:
>> Hi,
>> As elver is going to be part of emft, I would like to know if there is
>> any plan on generating SQL code for OCL expression in the model. This
>> would allow us to enforce the constraints inside the database.
>>
>> Thanks,
>> Selcuk
>>
>
Previous Topic:OCL or QUERY and CDO
Next Topic:Library EXT Example (Live Validation)
Goto Forum:
  


Current Time: Wed Apr 24 22:47:20 GMT 2024

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

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

Back to the top