Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » TENEO : Link not created
TENEO : Link not created [message #112547] Mon, 18 February 2008 18:07 Go to next message
Eclipse UserFriend
Originally posted by: frederic.ventura.eurogiciel.fr

Hello Martin

I think I have found a problem with teneo.

Pearhaps it is already known, or pearhaps it is normal but I would like to
have your point of view :


my GMF application is done with 1 ecore, but with this ecore, I created 2
diagrams.
The first diagram is the complete diagram using my root "CHAMPIONSHIP".
from this diagram, I can open a subdiagram for the EObject "TEAM"

I can create instance of TEAM and PLAYER.

the link between TEAM and PLAYER is bidirectional.
- link1 : player --> team (not transient)
- link2 : team --> player (transient)
link1 is defined as EOpposite of link2 in ecore
and link2 is defined as EOpposite of link1

the most part of links work in my application, but the links between
player and team dont work.

No error are raised, nothing goes wrong, link is drown between team and
player.
but when I close my application and re-open it, the link has disappeared.
If I try to see my database, the field correspondont to the foreign key is
empty, it hasn't been updated.


If I modify the ecore like this :
- link1 : player --> team (not transient)
- link2 : team --> player (NOT transient)
all goes well and the application saves the link in database.

I think that when a link is not transient and its opposite is transient,
no links are saved whereas the opposite of the transient link should have
been saved.
Re: TENEO : Link not created [message #112586 is a reply to message #112547] Mon, 18 February 2008 19:39 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Fred,
This seems like a bug, I need to check, can you post the hbm which is generated for the player ->
team and the team--> player in case the second is transient (if any hbm is created for it)?

gr. Martin

fred wrote:
> Hello Martin
>
> I think I have found a problem with teneo.
>
> Pearhaps it is already known, or pearhaps it is normal but I would like
> to have your point of view :
>
>
> my GMF application is done with 1 ecore, but with this ecore, I created
> 2 diagrams.
> The first diagram is the complete diagram using my root "CHAMPIONSHIP".
> from this diagram, I can open a subdiagram for the EObject "TEAM"
>
> I can create instance of TEAM and PLAYER.
>
> the link between TEAM and PLAYER is bidirectional.
> - link1 : player --> team (not transient)
> - link2 : team --> player (transient)
> link1 is defined as EOpposite of link2 in ecore
> and link2 is defined as EOpposite of link1
>
> the most part of links work in my application, but the links between
> player and team dont work.
>
> No error are raised, nothing goes wrong, link is drown between team and
> player.
> but when I close my application and re-open it, the link has disappeared.
> If I try to see my database, the field correspondont to the foreign key
> is empty, it hasn't been updated.
>
>
> If I modify the ecore like this :
> - link1 : player --> team (not transient)
> - link2 : team --> player (NOT transient)
> all goes well and the application saves the link in database.
>
> I think that when a link is not transient and its opposite is transient,
> no links are saved whereas the opposite of the transient link should
> have been saved.
>


--

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: TENEO : Link not created [message #615511 is a reply to message #112547] Mon, 18 February 2008 19:39 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Fred,
This seems like a bug, I need to check, can you post the hbm which is generated for the player ->
team and the team--> player in case the second is transient (if any hbm is created for it)?

gr. Martin

fred wrote:
> Hello Martin
>
> I think I have found a problem with teneo.
>
> Pearhaps it is already known, or pearhaps it is normal but I would like
> to have your point of view :
>
>
> my GMF application is done with 1 ecore, but with this ecore, I created
> 2 diagrams.
> The first diagram is the complete diagram using my root "CHAMPIONSHIP".
> from this diagram, I can open a subdiagram for the EObject "TEAM"
>
> I can create instance of TEAM and PLAYER.
>
> the link between TEAM and PLAYER is bidirectional.
> - link1 : player --> team (not transient)
> - link2 : team --> player (transient)
> link1 is defined as EOpposite of link2 in ecore
> and link2 is defined as EOpposite of link1
>
> the most part of links work in my application, but the links between
> player and team dont work.
>
> No error are raised, nothing goes wrong, link is drown between team and
> player.
> but when I close my application and re-open it, the link has disappeared.
> If I try to see my database, the field correspondont to the foreign key
> is empty, it hasn't been updated.
>
>
> If I modify the ecore like this :
> - link1 : player --> team (not transient)
> - link2 : team --> player (NOT transient)
> all goes well and the application saves the link in database.
>
> I think that when a link is not transient and its opposite is transient,
> no links are saved whereas the opposite of the transient link should
> have been saved.
>


--

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 : Link not created
Next Topic:[CDO] Questions about 0.8.0M5
Goto Forum:
  


Current Time: Sat Apr 27 03:07:28 GMT 2024

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

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

Back to the top