Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Problem with deserializing a association
[Teneo] Problem with deserializing a association [message #1709263] Fri, 25 September 2015 12:22 Go to next message
D. W. is currently offline D. W.Friend
Messages: 1
Registered: September 2015
Junior Member
Persisting the following ecore file works fine:
<?xml version="1.0" encoding="UTF-8"?>
<ecoreI:Reservationsystem xmi:version="2.0" xmlns:xmi=".../XMI" xmlns:ecoreI="...">
  <own Name="Seat 1"/>
  <have Forename="D" Surname="W" reservation="//@own.0"/>
</ecoreI:Reservationsystem>


But I have a problem, when I try to deserialize it back.
The association is lost:
<?xml version="1.0" encoding="UTF-8"?>
<ecoreI:Reservationsystem xmi:version="2.0" xmlns:xmi=".../XMI" xmlns:ecoreI="...">
  <own Name="Seat 1"/>
  <have Forename="D" Surname="W">
</ecoreI:Reservationsystem>


Is there any teneo/hibernate option to fix this? Shocked

thanks

(I'm new to teneo/hibernate)
Re: [Teneo] Problem with deserializing a association [message #1709373 is a reply to message #1709263] Mon, 28 September 2015 05:43 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi D.W.
To find where something might go wrong, is the have.reservation value correctly set in the database?

When you debug and read the xml file, do you see that the have object correctly points to the own object? (so before it
gets persisted in the database?

gr. Martin


On 25-09-15 15:43, D. W. wrote:
> Persisting the following ecore file works fine:
> <?xml version="1.0" encoding="UTF-8"?>
> <ecoreI:Reservationsystem xmi:version="2.0" xmlns:xmi=".../XMI" xmlns:ecoreI="...">
> <own Name="Seat 1"/>
> <have Forename="D" Surname="W" reservation="//@own.0"/>
> </ecoreI:Reservationsystem>
>
>
> But I have a problem, when I try to deserialize it back.
> The association is lost:
> <?xml version="1.0" encoding="UTF-8"?>
> <ecoreI:Reservationsystem xmi:version="2.0" xmlns:xmi=".../XMI" xmlns:ecoreI="...">
> <own Name="Seat 1"/>
> <have Forename="D" Surname="W">
> </ecoreI:Reservationsystem>
>
>
> Is there any teneo/hibernate option to fix this? 8o
> thanks
>
> (I'm new to teneo/hibernate)


--

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:Loading EMF inside Maven Plugin
Next Topic:[CDO] Resource renaming
Goto Forum:
  


Current Time: Tue Oct 15 21:05:04 GMT 2019

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

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

Back to the top