-->
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.  [ 2 posts ] 
Author Message
 Post subject: Lazy/Grouped field intialization?
PostPosted: Sat Jul 24, 2004 6:06 pm 
Beginner
Beginner

Joined: Wed Jul 21, 2004 12:28 pm
Posts: 27
Location: New York
I was looking for ways to retrieve the same objects in different ways. Sort of like jboss grouping of fields. Say you group the fields and if one of the fields is accessesd all the values of the the fields in the group are retrieved. I would probably correct if I say lazy fields.

Is there a way to configure hibernate that way?

The use case for it would be the use of summary inside the views. Suppose user provides query criteria and a bunch of objects are instantiated. Those objects might be fairly big (say 100 fields), so I would want only dozen or so fields instantiated in my summary view, when user selects particular object he wants to navigate I would need hibernate to fill up the rest.

Any insight is appreciated.

_________________
Thanks,
Alex


Top
 Profile  
 
 Post subject: Re: Lazy/Grouped field intialization?
PostPosted: Sat Jul 24, 2004 11:51 pm 
Senior
Senior

Joined: Sat Jul 17, 2004 5:16 pm
Posts: 143
My understanding is that what you want is not possible with Hibernate. However, you can emulate such behavior by changing your objectmodel... Have an object with the initial fields, and a one-to-one mapping to another object (which cannot be null) that has the other fields (which is lazily loaded). Then you can have the desired result. Otherwise, its all or nothing with primitive fields.


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.