-->
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 loading of a single property in a class
PostPosted: Thu May 24, 2007 11:37 am 
Newbie

Joined: Thu May 24, 2007 8:36 am
Posts: 1
Hi All,
We have a database table in which one of the columns is a BLOB.
We have mapped a java bean to it. Now we want to do lazy loading of property mapped to the BLOB. Can someone please tell us the best way to do this without doing byte code instrumentation, or projection list (because the projection list is returning an array of objects and not a specific type object).?

Thank you very much.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 25, 2007 1:36 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

Code:
calss Test{

......

Blob aBlobColumn;


}


in mapping part
Code:
<property
            name="aBlobColumn"
            type="blob"
            update="true"
            insert="true"
            column="BlobColumn"
            lazy="true"
        />


Amila

(Don't forget to rate if helps)


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.