Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » subclasses not being recreated
subclasses not being recreated [message #85988] Mon, 11 June 2007 17:40 Go to next message
Paul Gardiner is currently offline Paul GardinerFriend
Messages: 94
Registered: July 2009
Member
I have a model that is created in java, that gets perisisted fine, but
doesn't get recreated when I read it back in.

When I create and save an instance of the subclass, and then look in the
database, I can see all of its properties in the corresponding table. When
I read it back in, the properties from the superclass are ok, and the getter
methods work fine. However, the properties that are defined in the subclass
are all null.
Re: subclasses not being recreated [message #86002 is a reply to message #85988] Mon, 11 June 2007 17:44 Go to previous messageGo to next message
Paul Gardiner is currently offline Paul GardinerFriend
Messages: 94
Registered: July 2009
Member
Sorry, I forgot to mark it teneo.

"Paul Gardiner" <pgardiner@syntellect.com> wrote in message
news:f4k1es$tvr$1@build.eclipse.org...
>I have a model that is created in java, that gets perisisted fine, but
>doesn't get recreated when I read it back in.
>
> When I create and save an instance of the subclass, and then look in the
> database, I can see all of its properties in the corresponding table.
> When I read it back in, the properties from the superclass are ok, and the
> getter methods work fine. However, the properties that are defined in the
> subclass are all null.
>
>
Re: subclasses not being recreated [message #86017 is a reply to message #86002] Mon, 11 June 2007 18:31 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I would need some more information to be able to comment. Can you make a small example which shows
this behavior?

gr. Martin

Paul Gardiner wrote:
> Sorry, I forgot to mark it teneo.
>
> "Paul Gardiner" <pgardiner@syntellect.com> wrote in message
> news:f4k1es$tvr$1@build.eclipse.org...
>> I have a model that is created in java, that gets perisisted fine, but
>> doesn't get recreated when I read it back in.
>>
>> When I create and save an instance of the subclass, and then look in the
>> database, I can see all of its properties in the corresponding table.
>> When I read it back in, the properties from the superclass are ok, and the
>> getter methods work fine. However, the properties that are defined in the
>> subclass are all null.
>>
>>
>
>


--

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: subclasses not being recreated [message #86093 is a reply to message #86017] Tue, 12 June 2007 19:20 Go to previous message
Paul Gardiner is currently offline Paul GardinerFriend
Messages: 94
Registered: July 2009
Member
I tried recreating and was unsuccessful. It turned out to be a bug in my
implementation classes on my part.

"Martin Taal" <mtaal@elver.org> wrote in message
news:f4k4dg$4da$1@build.eclipse.org...
>I would need some more information to be able to comment. Can you make a
>small example which shows this behavior?
>
> gr. Martin
>
> Paul Gardiner wrote:
>> Sorry, I forgot to mark it teneo.
>>
>> "Paul Gardiner" <pgardiner@syntellect.com> wrote in message
>> news:f4k1es$tvr$1@build.eclipse.org...
>>> I have a model that is created in java, that gets perisisted fine, but
>>> doesn't get recreated when I read it back in.
>>>
>>> When I create and save an instance of the subclass, and then look in the
>>> database, I can see all of its properties in the corresponding table.
>>> When I read it back in, the properties from the superclass are ok, and
>>> the getter methods work fine. However, the properties that are defined
>>> in the subclass are all null.
>>>
>>>
>>
>>
>
>
> --
>
> 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: subclasses not being recreated [message #606900 is a reply to message #85988] Mon, 11 June 2007 17:44 Go to previous message
Paul Gardiner is currently offline Paul GardinerFriend
Messages: 94
Registered: July 2009
Member
Sorry, I forgot to mark it teneo.

"Paul Gardiner" <pgardiner@syntellect.com> wrote in message
news:f4k1es$tvr$1@build.eclipse.org...
>I have a model that is created in java, that gets perisisted fine, but
>doesn't get recreated when I read it back in.
>
> When I create and save an instance of the subclass, and then look in the
> database, I can see all of its properties in the corresponding table.
> When I read it back in, the properties from the superclass are ok, and the
> getter methods work fine. However, the properties that are defined in the
> subclass are all null.
>
>
Re: subclasses not being recreated [message #606901 is a reply to message #86002] Mon, 11 June 2007 18:31 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I would need some more information to be able to comment. Can you make a small example which shows
this behavior?

gr. Martin

Paul Gardiner wrote:
> Sorry, I forgot to mark it teneo.
>
> "Paul Gardiner" <pgardiner@syntellect.com> wrote in message
> news:f4k1es$tvr$1@build.eclipse.org...
>> I have a model that is created in java, that gets perisisted fine, but
>> doesn't get recreated when I read it back in.
>>
>> When I create and save an instance of the subclass, and then look in the
>> database, I can see all of its properties in the corresponding table.
>> When I read it back in, the properties from the superclass are ok, and the
>> getter methods work fine. However, the properties that are defined in the
>> subclass are all null.
>>
>>
>
>


--

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: subclasses not being recreated [message #606910 is a reply to message #86017] Tue, 12 June 2007 19:20 Go to previous message
Paul Gardiner is currently offline Paul GardinerFriend
Messages: 94
Registered: July 2009
Member
I tried recreating and was unsuccessful. It turned out to be a bug in my
implementation classes on my part.

"Martin Taal" <mtaal@elver.org> wrote in message
news:f4k4dg$4da$1@build.eclipse.org...
>I would need some more information to be able to comment. Can you make a
>small example which shows this behavior?
>
> gr. Martin
>
> Paul Gardiner wrote:
>> Sorry, I forgot to mark it teneo.
>>
>> "Paul Gardiner" <pgardiner@syntellect.com> wrote in message
>> news:f4k1es$tvr$1@build.eclipse.org...
>>> I have a model that is created in java, that gets perisisted fine, but
>>> doesn't get recreated when I read it back in.
>>>
>>> When I create and save an instance of the subclass, and then look in the
>>> database, I can see all of its properties in the corresponding table.
>>> When I read it back in, the properties from the superclass are ok, and
>>> the getter methods work fine. However, the properties that are defined
>>> in the subclass are all null.
>>>
>>>
>>
>>
>
>
> --
>
> 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
Previous Topic:[Teneo - JPOX] Enhanced classes
Next Topic:How to generate schema with jpoxhelper
Goto Forum:
  


Current Time: Thu Mar 28 11:05:02 GMT 2024

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

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

Back to the top