-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate + XStream -> strange results after persistence?
PostPosted: Tue Aug 31, 2004 8:20 am 
Newbie

Joined: Mon Dec 22, 2003 4:49 am
Posts: 16
Hi,

I'm having a question related to Hibernate. When I try to generate xml from a pojo that has xdoclet hibernate tags in it everything goes fine BUT when I first make the pojo persistent and then transform it to xml then the a lot of hibernate specific data like "bag" can be found in the resuling xml file, see the file below for the result:

BEFORE PERSISTENCE:

<com.Co id="1">
<clauses id="2">
<comC id="3">
...


AFTER PERSISTENCE

<com.Co id="1">
<clauses class="net.sf.hibernate.collection.Bag" id="2">
<bag id="3">
<com.C id="4">
...


Can anyone explain this behaviour? Why is my pojo different after it has been made persistent, what is hibernate doing behind the scenes?

Grtz

M.


Top
 Profile  
 
 Post subject: Re: Hibernate + XStream -> strange results after persiste
PostPosted: Tue Aug 31, 2004 10:47 am 
Newbie

Joined: Tue Jan 27, 2004 3:26 pm
Posts: 18
rebornspirit wrote:
Can anyone explain this behaviour? Why is my pojo different after it has been made persistent, what is hibernate doing behind the scenes?


Hibernate uses its own implementation of collection classes for lazy loading. Read documentation.

Artrur


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.