-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Remote lazy loading
PostPosted: Sat Mar 22, 2008 5:31 pm 
Newbie

Joined: Sat Mar 22, 2008 5:11 pm
Posts: 6
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.