-->
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: Blob
PostPosted: Sat Mar 27, 2004 9:59 pm 
Newbie

Joined: Thu Feb 12, 2004 9:48 am
Posts: 12
Location: Campina Grande, PB, Brazil
Quote:
Hi, Everyone!

Well, firstly, thank you for this forum. It's an fine decision, considering that Hibernate is an open-source tool, to answer questions of users who don't even pay for it.

Well, my question is:

Can I define (in a mapping) a property of type Blob in a way that it's lazy instantiatable, instead of creating an entity (a bean) to represent this Blob?

In my problem domain, I'm trying to represent a User-has-many-MessageBox-has-many-Message-has-many-Attachment envronment, in an e-mailing system. Because it's used in a web application, I'd want to get the minimum amount of data per request, to diminish memory using and processing. That means: only when the user access the message x (clicking in a link of a message listing which correspond to the message), and click in the attachment, the attachment data (bytes) would be retrieved from the datasource.

Thanks again.

julioaragao

[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 29, 2004 6:05 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Blobs are lazy as per the JDBC spec if I remember well, Check to be sure however.

_________________
Emmanuel


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.