Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Texo] @JoinTable generation for one-to-many
[Texo] @JoinTable generation for one-to-many [message #1743193] Tue, 13 September 2016 08:44 Go to next message
Zachary Labaysse is currently offline Zachary LabaysseFriend
Messages: 5
Registered: March 2015
Junior Member
Hi everybody,

I'm using EMF and Texo to generate something fancy but I have a problem, I need One-To-Many relationships (with, sometimes, no containment) without JoinTable.
When I generate the Texo annotation model, it generates a JoinTable for each One-To-Many without containment. Anyway, I delete it and add my "mappedby" attribute.
But, when I use the code generation, the "@JoinTable" annotation is still being generated whereas it does not exist in my annotation model...

Any clue ?

Re: [Texo] @JoinTable generation for one-to-many [message #1746850 is a reply to message #1743193] Sun, 06 November 2016 13:11 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Zach,
Late reply... I will reply anyway for reference:

There is a property of the epackage orm model annotation which controls this 'globally': UseJoinTablesForNonContainment. The default is true, but you can set it to false.
Alternatively you can annotate the ereference with a OneToMany model annotation and add/set a joincolumn in the OneToMany. This is a signal to Texo that you don't want a jointable.

Some reference docs:

Let me know if you still have any open questions (after my reply).

gr. Martin
Previous Topic:[TEXO] creating a Map attribute
Next Topic:[TEXO][ACCELEO] template overriding using Acceleo
Goto Forum:

Current Time: Tue Jan 25 04:50:05 GMT 2022

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

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

Back to the top