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
|
|