Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Save GMF and EMF in different datastores (TENEO)
Save GMF and EMF in different datastores (TENEO) [message #653101] Tue, 08 February 2011 14:01 Go to next message
Joao S is currently offline Joao SFriend
Messages: 51
Registered: January 2011
Member
Hello everyone,

I´m following Mindmap tutorial.

I would like to know if it is possible to save mindmap model and the diagram model in differente databases, using Teneo.

Thanks,
Joao
Re: Save GMF and EMF in different datastores (TENEO) [message #653106 is a reply to message #653101] Tue, 08 February 2011 14:10 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hmm, I am not sure myself. I don't know if there are references from one to the other. If so you can still persist by
annotating the associations with an @External annotation:
http://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Asso ciation_Mapping#Storing_external_references_.28to_non-persis ted_objects.29.2C_customizing_persisting_references

But I guess you have to dive really deep into the GMF model to do this...

gr. Martin

On 02/08/2011 03:01 PM, Joao wrote:
> Hello everyone,
>
> I´m following Mindmap tutorial.
>
> I would like to know if it is possible to save mindmap model and the diagram model in differente databases, using Teneo.
>
> Thanks,
> Joao


--

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@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Save GMF and EMF in different datastores (TENEO) [message #653107 is a reply to message #653101] Tue, 08 February 2011 14:10 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hmm, I am not sure myself. I don't know if there are references from one to the other. If so you can still persist by
annotating the associations with an @External annotation:
http://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Asso ciation_Mapping#Storing_external_references_.28to_non-persis ted_objects.29.2C_customizing_persisting_references

But I guess you have to dive really deep into the GMF model to do this...

gr. Martin

On 02/08/2011 03:01 PM, Joao wrote:
> Hello everyone,
>
> I´m following Mindmap tutorial.
>
> I would like to know if it is possible to save mindmap model and the diagram model in differente databases, using Teneo.
>
> Thanks,
> Joao


--

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@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Save GMF and EMF in different datastores (TENEO) [message #653125 is a reply to message #653107] Tue, 08 February 2011 15:25 Go to previous message
Joao S is currently offline Joao SFriend
Messages: 51
Registered: January 2011
Member
Hello Martin,

Thank you very much for your answer.

If so, maybe it would be easier to face another solution.

Maybe I should keep both models in the same database.

But also, I would like to keep a simple representation of the mindmap model in another database.

Is it possible?

Thanks
Joao

Previous Topic:Adding text content to EObjects generated from XSD
Next Topic:XSD -> EMF mixed + choice group
Goto Forum:
  


Current Time: Mon Oct 14 17:41:53 GMT 2019

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

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

Back to the top