-->
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.  [ 1 post ] 
Author Message
 Post subject: Solving the problem of circular reference
PostPosted: Fri Sep 24, 2004 6:35 am 
Newbie

Joined: Fri Jul 16, 2004 2:02 am
Posts: 13
Is it possible to solve the problem of circular reference by adding a property field along with many to one relationship in child table ?

For example A is parent table and B as child table.
A has set for B and B has many to one relationship with A
This causes Xml serialization problems because of circular reference.

To solve it, I just added the column involved in many to one as a property in mapping. Because hibernate does not support mapping of single column twice so I added insert="false" and update="false" in many to one relationship.

I want to confirm whether it fulfills the purpose.

Thanks in advance!

_________________
Kary


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

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.