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: fill a field only when it is request
PostPosted: Wed Jun 11, 2008 2:22 pm 
Newbie

Joined: Fri Mar 14, 2008 2:32 pm
Posts: 3
Is there any way to fill a field only when it is request?

I have a table called Document, with colluns Description, and another field (called Document) that contains the blob that has the real document.

I need that the field that contains the real document only be charged when it requested.

Note: The lazy loading does not help, because it indicates that the class component must be charged when accesed.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 13, 2008 2:47 pm 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
This is referred to as 'lazy-properties' and is not yet a feature supported by NH.


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