Hi, all:
I am using Hibernate 3.3 and SQL Server 2005 DB. I have developed a web service that returns a User object by user ID. This User object contains a list of assigned RoleS, and this association is implemented by a join table. The web client (also written in Java) later uses this User object to retrieve Role information whenever it wants - long after the Hibernate session is closed.
I am wondering how to lazy load this User object and all its associations (Roles, etc.) and all its attributes and those of Role object. How is this possible remotely, because web service is remotely located? I am using Springframework's HttpInvoker to expose the web service to the client. I would appreciate any help. If this topic has been already discussed, please point me there. Thanks.
|