Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [TENEO] Inheritance Mapping Limitation
[TENEO] Inheritance Mapping Limitation [message #898617] Thu, 26 July 2012 21:45 Go to next message
fabiangec Missing name is currently offline fabiangec Missing nameFriend
Messages: 10
Registered: December 2011
Junior Member
How I can solve this limitation?
http://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Inheritance_Mapping#Limitation

Thanks
Re: [TENEO] Inheritance Mapping Limitation [message #898635 is a reply to message #898617] Thu, 26 July 2012 23:18 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
You have a multi-inheritance case then? You can't really (otherwise I would have solved it long ago), you have to change
your model. If you can post your model with some info maybe I can comment in more detail for your specific case.

gr. Martin

On 07/26/2012 11:45 PM, fabiangec Mising name wrote:
> How I can solve this limitation? http://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Inheritance_Mapping#Limitation
>
> Thanks


--

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@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [TENEO] Inheritance Mapping Limitation [message #898788 is a reply to message #898635] Fri, 27 July 2012 14:52 Go to previous messageGo to next message
fabiangec Missing name is currently offline fabiangec Missing nameFriend
Messages: 10
Registered: December 2011
Junior Member
It should not be so easy to solve not already done so. My question is if you have somehow, by means of annotations can be made that do not generate the Foreign knowing that you may lose consistency in the model. thank you very much
Re: [TENEO] Inheritance Mapping Limitation [message #898791 is a reply to message #898788] Fri, 27 July 2012 15:09 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Fabian,
Sorry can you explain a bit more? What foreign key you don't want to have generated?

gr. Martin

On 07/27/2012 04:52 PM, fabiangec Mising name wrote:
> It should not be so easy to solve not already done so. My question is if you have somehow, by means of annotations can
> be made that do not generate the Foreign knowing that you may lose consistency in the model. thank you very much


--

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@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [TENEO] Inheritance Mapping Limitation [message #898826 is a reply to message #898791] Fri, 27 July 2012 19:14 Go to previous message
fabiangec Missing name is currently offline fabiangec Missing nameFriend
Messages: 10
Registered: December 2011
Junior Member
Already resolve the issue using the notation ANY. For the example in question would be to put an annotation in the eReference AssetList-Asset and thus @Any(metaColumn = @Column(name = "assetList_asset_type"))

Thus the FK on the table SchoolBook AssetList not generated and I can enlist SchoolBook instances if you had put heritage in the first place and not to Asset Book.

Thanks for your help
Previous Topic:[Diff/Merge] Creation Review successful
Next Topic:[xcore] refering to classes in non XCore ecore models
Goto Forum:
  


Current Time: Thu Mar 28 22:17:59 GMT 2024

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

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

Back to the top