Regular |
|
Joined: Thu Jul 01, 2004 12:13 am Posts: 68 Location: San Diego, CA
|
We are using WebLogic WebServices to transfer our Hibernate VOs over the wire for transferring data. Problem is that in any relationship between two objects created with HibernateSynchronizer, there's a circular reference between those objects. WebLogic's XMLEncoder doesn't like this too much complaining about the recursion. I am wondering what I can do in the Hibernate objects to break the reference.
Right now I am thinking to break the circ. reference by removing the reference to the parent object from the child object. Thus, only allowing navigability from the parent object. Does this make sense to do this or will I break something because Hibernate needs this reference for persistence? The problem is that these references are FKs in the table with NOT NULL set. :(
Your experiences would be appreciated.
TIA,
Lou
|
|