Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [FIXED][Texo] Enforce on which side of a one-to-one relation the 'mapped-by' attribute is generated
[FIXED][Texo] Enforce on which side of a one-to-one relation the 'mapped-by' attribute is generated [message #791836] Mon, 06 February 2012 10:09 Go to next message
Benoit Cantin is currently offline Benoit CantinFriend
Messages: 34
Registered: January 2012
Member
Hello,

Is there a way to enforce on which side of a bi-directional one-to-one relation the 'mapped-by' attribute is generated ? I mean otherwise than through a manual adding in the annotation model ?

More generally, what is the strategy used by Texo in that case (bi-directional one-to-one) ?

Read in http://wiki.eclipse.org/Texo/ORM_JPA_Annotations_Details :
'Texo will automatically manage which side is the owner in a bi-directional association.'

But it is not said much about one-to-one case.

[Updated on: Mon, 13 February 2012 12:37]

Report message to a moderator

Re: [Texo] Enforce on which side of a one-to-one relation the 'mapped-by' attribute is generated ? [message #791845 is a reply to message #791836] Mon, 06 February 2012 10:20 Go to previous messageGo to next message
Benoit Cantin is currently offline Benoit CantinFriend
Messages: 34
Registered: January 2012
Member
I correct : even with an annotation model, it seems impossible to inverse the mapped-by attribute of a one-to-one. I can add 'mapped-by' on the other side of the relation, but I cannot remove it from the original side.

Any idea ?
Re: [Texo] Enforce on which side of a one-to-one relation the 'mapped-by' attribute is generated ? [message #791885 is a reply to message #791845] Mon, 06 February 2012 11:15 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Benoit,
Something to solve it seems. Can you open a bugzilla and attach an example model with annotations model?

gr. Martin

On 02/06/2012 11:20 AM, Benoit Cantin wrote:
> I correct : even with an annotation model, it seems impossible to inverse the mapped-by attribute of a one-to-one. I can
> add 'mapped-by' on the other side of the relation, but I cannot remove it from the original side.
>
> Any idea ?


--

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: [Texo] Enforce on which side of a one-to-one relation the 'mapped-by' attribute is generated ? [message #791978 is a reply to message #791885] Mon, 06 February 2012 13:37 Go to previous messageGo to next message
Benoit Cantin is currently offline Benoit CantinFriend
Messages: 34
Registered: January 2012
Member
Hi Martin,

Thank you. Here is the bug report : https://bugs.eclipse.org/bugs/show_bug.cgi?id=370716
Re: [Texo] Enforce on which side of a one-to-one relation the 'mapped-by' attribute is generated ? [message #797395 is a reply to message #791978] Mon, 13 February 2012 12:36 Go to previous message
Benoit Cantin is currently offline Benoit CantinFriend
Messages: 34
Registered: January 2012
Member
I've just tested. That's effectively fixed now. Thanks.
Previous Topic:3rd Biannual Eclipse/OMG Workshop on March 25
Next Topic:[FIXED][Texo] ORM Annotation -> Basic -> Enumerated : wrong JPA generation result
Goto Forum:
  


Current Time: Fri Apr 19 16:42:16 GMT 2024

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

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

Back to the top