teneo - transient references are mapped to hibernate [message #61976] |
Fri, 17 November 2006 20:09  |
Eclipse User |
|
|
|
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 00:04  |
Eclipse User |
|
|
|
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 00:04  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03828 seconds