Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » teneo - transient references are mapped to hibernate
teneo - transient references are mapped to hibernate [message #61976] Sat, 18 November 2006 01:09 Go to next message
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
Hi Martin,

I have a bidirectional association which is on both side transient, not volatile
and not changeable. In an XMI resource, the association is ignored, but they are
both mapped to hibernate by teneo, which creates an FK on the many side.

Is this a bug or a feature?

Reason why I'm asking: I'm using MySQL and would like to have the many side live
in a MyISAM table, which is faster and non-transactional, but can not hold an
FK. All other tables live in the InnoDB engine for transactional safety.

Regards
Andre
Re: teneo - transient references are mapped to hibernate [message #62001 is a reply to message #61976] Sat, 18 November 2006 05:04 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Andre,
For bi-directional cases the transient attribute is ignored if the other side is a containment
relation (see processEFeature method in DefaultAnnotator). Does this apply to your situation?
In this case the system should check that the eopposite is also transient and if so tag it as transient.
Can you enter a bugzilla for this (if this applies to you)?

Btw, if the efeature is volatile then it is ignored also (without checking the other side).

gr. Martin

Andre Pareis wrote:
> Hi Martin,
>
> I have a bidirectional association which is on both side transient, not
> volatile and not changeable. In an XMI resource, the association is
> ignored, but they are both mapped to hibernate by teneo, which creates
> an FK on the many side.
>
> Is this a bug or a feature?
>
> Reason why I'm asking: I'm using MySQL and would like to have the many
> side live in a MyISAM table, which is faster and non-transactional, but
> can not hold an FK. All other tables live in the InnoDB engine for
> transactional safety.
>
> Regards
> Andre
>


--

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 - transient references are mapped to hibernate [message #595877 is a reply to message #61976] Sat, 18 November 2006 05:04 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Andre,
For bi-directional cases the transient attribute is ignored if the other side is a containment
relation (see processEFeature method in DefaultAnnotator). Does this apply to your situation?
In this case the system should check that the eopposite is also transient and if so tag it as transient.
Can you enter a bugzilla for this (if this applies to you)?

Btw, if the efeature is volatile then it is ignored also (without checking the other side).

gr. Martin

Andre Pareis wrote:
> Hi Martin,
>
> I have a bidirectional association which is on both side transient, not
> volatile and not changeable. In an XMI resource, the association is
> ignored, but they are both mapped to hibernate by teneo, which creates
> an FK on the many side.
>
> Is this a bug or a feature?
>
> Reason why I'm asking: I'm using MySQL and would like to have the many
> side live in a MyISAM table, which is faster and non-transactional, but
> can not hold an FK. All other tables live in the InnoDB engine for
> transactional safety.
>
> Regards
> Andre
>


--

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 - transient references are mapped to hibernate
Next Topic:Teneo: HibernateResource is not smart enough
Goto Forum:
  


Current Time: Sun Feb 28 07:57:37 GMT 2021

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

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

Back to the top