Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » TENEO : DTYPE ISSUE(TENEO : DTYPE ISSUE)
TENEO : DTYPE ISSUE [message #1232333] Thu, 16 January 2014 18:03 Go to next message
Chandre Gowda is currently offline Chandre GowdaFriend
Messages: 56
Registered: April 2013
Member
Hello,

I have a class called 'Flow' extends two classes 'DirectedElement' and 'Property'. I have one more class called 'PropertyContainer' which contains 'Properties'(Containement=true). I am able to persist PropertyContainer using TENEO and Hibernate. But when i tried to retrieve , getting the following exception

com.test.DataManagementException: Object with id: 275 was not of the specified subclass: Property (Discriminator: Flow)

DB has row with ID '275' pointing to 'Flow' dtype.
Please let me know how to address this issue.

Thanks
Chandru
Re: TENEO : DTYPE ISSUE [message #1232340 is a reply to message #1232333] Thu, 16 January 2014 18:21 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Chandre,
Multiple inheritance is not handled completely in ORM's:
http://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Inheritance_Mapping#Multiple_Inheritance_Support

gr. Martin

On 01/16/2014 07:03 PM, Chandre Gowda wrote:
> Hello,
>
> I have a class called 'Flow' extends two classes 'DirectedElement' and 'Property'. I have one more class called
> 'PropertyContainer' which contains 'Properties'(Containement=true). I am able to persist PropertyContainer using TENEO
> and Hibernate. But when i tried to retrieve , getting the following exception
>
> com.test.DataManagementException: Object with id: 275 was not of the specified subclass: Property (Discriminator: Flow)
>
> DB has row with ID '275' pointing to 'Flow' dtype.
> Please let me know how to address this issue.
>
> Thanks
> Chandru


--

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
Previous Topic:[TEXO] Calling custom java methods from overriden templates
Next Topic:[Texo] DTYPE column length
Goto Forum:
  


Current Time: Sun Mar 07 21:43:34 GMT 2021

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

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

Back to the top