-->
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.  [ 6 posts ] 
Author Message
 Post subject: Why blobtype is not cachable in hibernate?
PostPosted: Sun Nov 05, 2006 4:50 pm 
Newbie

Joined: Sun Nov 05, 2006 4:42 pm
Posts: 1
Can someone please help me understand why blobtype is not cachable in hibernate?

Can I create a cachable blobtype by doing this:
* create my own class and inherit it from BlobType
* overload the disassemble() method to return the value

Code:

public Serializable disassemble(Object value, SessionImplementor session, Object owner)
      throws HibernateException {
      return (Serializable)value;
   }



Will this work? if not can you please tell me how to make a blob cachable in hibernate? I am using hibernate 3.2.

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 2:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
read the javadocs for what a Blob really is and you will see it is something that is non-cachable because it's just a *locator* not an actual object.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 3:22 am 
Beginner
Beginner

Joined: Thu Jun 15, 2006 5:31 am
Posts: 21
Can I have a credit - the stupid forum isnt sending emails out and I have a question as to why the goddam net.sf.ehcache.hibernate.EhCacheProvider library is not found with the jboss distribution.

Of course I would download it but the EhCacheProvider on sourceforge only as a .tgz extension which appears corrupted as I can only get 10-12 files out of it. Freaking unfriendly.

Speaking of unfriendly, did I mention how ANNOYING this credit system is.

Oh yes, I get it, please shut up unless you are helping. Well, I am not sure whose bright idea that was but it really goes against the grain of open source. Not to mention making the link the user forum greyed and unuser friendly to find. Is this Red Hat becoming a Microsoft issue or what?

Vent, vent, damn second level caching provider class not found, grrrrrrr.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 3:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
since when were opensource about only taking ?

...and if you have a specific question about jboss distribtuion why don't you ask in a more relevant place ? Like the jboss AS forums ?

And do note if the point system wasn't here you wouldn't get any answers at all since noone would have any time and energy answering real questions because 9 out of 10 questions would be noise that should never have been posted because its either documented, in the faq or possible to find by using google. With the point system we reduced that greatly...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 8:22 am 
Beginner
Beginner

Joined: Thu Jun 15, 2006 5:31 am
Posts: 21
You are missing the point, it is not about taking, it is about free speech.

You are free to ignore any noise.

Almost all of my posts were ignored anyway, which is fine, but to make a point system where I have to either make up half-ass answers in a bid to get points - or create a new login is silly.

Fortunately the software and documentation is good enough to stand by itself so the real need for forum support is limited.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 8:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Free speech doesn't give you the right to say anything you want in a forum hosted on anothers website. I guess you are also against us requiring you to register before you can post ?

Do you really think letting through more noise will make it more likely for you to get an answer ?

In any case, there are some rules to post here - you either want to follow them or not; that is *your* free choice.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.