Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Is it possible to store uml models excluding class diagrams using Teneo or CDO?
Is it possible to store uml models excluding class diagrams using Teneo or CDO? [message #83429] Tue, 15 May 2007 14:56 Go to next message
Eclipse UserFriend
Originally posted by: dwkang.se.kaist.ac.kr

Hi,
Currently I'm trying to store use case diagrams and activity diagrams of UML
in database. But It's hard to find any materials that explain how to store
those diagrams using Teneo (or CDO). Examples use only class diagrams, and I
guess it's because class diagrams can represent metamodels that can be
converted to .ecore files. Am I right?

And I have one more questions. Is it possible to store additional
information rather than emf models in database using Teneo/CDO? For example,
date of model creation can be an attribute for searching. Is there any APIs
that support this feature?

Regards,
Dongwon
Re: Is it possible to store uml models excluding class diagrams using Teneo or CDO? [message #83459 is a reply to message #83429] Tue, 15 May 2007 18:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Dongwon,

I can only speak for CDO which works with all models that use Ecore as a meta model. That includes Ecore itself since that one is bootstrapped (implemented/expressed with itself). So from that point of view it does not make a difference whether you have class diagrams or other uml diagrams.

To use a model with CDO you must be able to regenerate it. The current stream of CDO (0.7) introduces a special base class into the model and contributes some include files to the EMF Jet templates. This is somewhat invasive to the models. The upcoming version of CDO (0.8) will only require to set a flag in the genmodel. Neither the core model nor the templates will have to be changed. But in any case you'll be in need of regenerating the model code. I'm not an expert in the UML2 implementation of Eclipse.org so I can't give an estimation on how easy it is to regenerate that model. If you gather any experience in that area I'd be interested to hear about it.

Cheers
/Eike


°­µ¿¿ø schrieb:
> Hi,
> Currently I'm trying to store use case diagrams and activity diagrams of UML
> in database. But It's hard to find any materials that explain how to store
> those diagrams using Teneo (or CDO). Examples use only class diagrams, and I
> guess it's because class diagrams can represent metamodels that can be
> converted to .ecore files. Am I right?
>
> And I have one more questions. Is it possible to store additional
> information rather than emf models in database using Teneo/CDO? For example,
> date of model creation can be an attribute for searching. Is there any APIs
> that support this feature?
>
> Regards,
> Dongwon
>
>
Re: Is it possible to store uml models excluding class diagrams using Teneo or CDO? [message #83472 is a reply to message #83429] Tue, 15 May 2007 18:23 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Dongwon,
I can react regarding Teneo but I am not 100% sure what you mean, with Teneo you can store ecore
models (the instances of the model element). As the ecore model itself is also an ecore model you
can also store models itself (although this has not been tested thoroughly).
Teneo supports both persisting generated java classes as well as dynamic emf (so persist without
generating java classes).

Teneo/Hibernate does not store additional information other than for optimistic locking (a version
number/timestamp).

gr. Martin

°­µ¿¿ø wrote:
> Hi,
> Currently I'm trying to store use case diagrams and activity diagrams of UML
> in database. But It's hard to find any materials that explain how to store
> those diagrams using Teneo (or CDO). Examples use only class diagrams, and I
> guess it's because class diagrams can represent metamodels that can be
> converted to .ecore files. Am I right?
>
> And I have one more questions. Is it possible to store additional
> information rather than emf models in database using Teneo/CDO? For example,
> date of model creation can be an attribute for searching. Is there any APIs
> that support this feature?
>
> Regards,
> Dongwon
>
>


--

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: Is it possible to store uml models excluding class diagrams using Teneo or CDO? [message #606694 is a reply to message #83429] Tue, 15 May 2007 18:03 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6535
Registered: July 2009
Senior Member
Dongwon,

I can only speak for CDO which works with all models that use Ecore as a meta model. That includes Ecore itself since that one is bootstrapped (implemented/expressed with itself). So from that point of view it does not make a difference whether you have class diagrams or other uml diagrams.

To use a model with CDO you must be able to regenerate it. The current stream of CDO (0.7) introduces a special base class into the model and contributes some include files to the EMF Jet templates. This is somewhat invasive to the models. The upcoming version of CDO (0.8) will only require to set a flag in the genmodel. Neither the core model nor the templates will have to be changed. But in any case you'll be in need of regenerating the model code. I'm not an expert in the UML2 implementation of Eclipse.org so I can't give an estimation on how easy it is to regenerate that model. If you gather any experience in that area I'd be interested to hear about it.

Cheers
/Eike


°­µ¿¿ø schrieb:
> Hi,
> Currently I'm trying to store use case diagrams and activity diagrams of UML
> in database. But It's hard to find any materials that explain how to store
> those diagrams using Teneo (or CDO). Examples use only class diagrams, and I
> guess it's because class diagrams can represent metamodels that can be
> converted to .ecore files. Am I right?
>
> And I have one more questions. Is it possible to store additional
> information rather than emf models in database using Teneo/CDO? For example,
> date of model creation can be an attribute for searching. Is there any APIs
> that support this feature?
>
> Regards,
> Dongwon
>
>


Re: Is it possible to store uml models excluding class diagrams using Teneo or CDO? [message #606695 is a reply to message #83429] Tue, 15 May 2007 18:23 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Dongwon,
I can react regarding Teneo but I am not 100% sure what you mean, with Teneo you can store ecore
models (the instances of the model element). As the ecore model itself is also an ecore model you
can also store models itself (although this has not been tested thoroughly).
Teneo supports both persisting generated java classes as well as dynamic emf (so persist without
generating java classes).

Teneo/Hibernate does not store additional information other than for optimistic locking (a version
number/timestamp).

gr. Martin

°­µ¿¿ø wrote:
> Hi,
> Currently I'm trying to store use case diagrams and activity diagrams of UML
> in database. But It's hard to find any materials that explain how to store
> those diagrams using Teneo (or CDO). Examples use only class diagrams, and I
> guess it's because class diagrams can represent metamodels that can be
> converted to .ecore files. Am I right?
>
> And I have one more questions. Is it possible to store additional
> information rather than emf models in database using Teneo/CDO? For example,
> date of model creation can be an attribute for searching. Is there any APIs
> that support this feature?
>
> Regards,
> Dongwon
>
>


--

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
Previous Topic:[Teneo] Which version of Hibernate?
Next Topic:[Teneo] Which version of Hibernate?
Goto Forum:
  


Current Time: Mon Jan 25 15:17:36 GMT 2021

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

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

Back to the top