As a rule I would try and avoid circular dependencies wherever possible.
But to answer your question, no, Hibernate will not load in an eternal loop as the objects will all be cached in the session regardless of your settings for lazy loading. Mike. On 12/8/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:
hi, very sorry, I am not sure where I should post this Domain Model Design question , pls advise. I realized that I have a circular dependency in my models each "User" creates a set of "Service" , each Service has a set of "Item", each Item also records who is its User. ie. User 1--->* Service 1--->* Item *--->1 User Q1) is my design fundamentally wrong ? is it natural ? any better solution ? Q2) in fact, my worry is at the hibernate layer. if I set to Lazy loading="false", will the loading go into infinite loop ? pls help. sorry for my ignorance. ~thinkboy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
