Hi,
I am relatively new to Hibernate (brilliant software - my thanks to its creators).
Currently I am trying to have my cake and eat it - and am asking if there a
pattern that would allow me to do so.
My problem is that I have two entity types - customer and contact. Each can reference any number of the other. Which means with highly cross-linked data retrieving a single customer retrieves multiple contacts which each retrieve multiple customers which each retrive... etc.
The obvious answer is lazy-loading.
However I am writing for a potentially high load client-server environment where each client request opens and closes a Hibernate session on the server. i.e. the client-server comms is stateless. In these circumstances, as I understand it, you cannot use lazy loading.
Is there a pattern that will get me around this?
Many thanks for any ideas.
Mike Evans