Blobs are not serializable because they are a pointer to space on the
database. So, you see, we couldn't cache them across transactions even if
we tried to.

disassemble() returns serializable because the cache might be to disk (in
the case of JCS) or it might be a clustered cache like SwarmCache.



|---------+------------------------------------------->
|         |           Michał Mosiewicz                |
|         |           <[EMAIL PROTECTED]>               |
|         |           Sent by:                        |
|         |           [EMAIL PROTECTED]|
|         |           ceforge.net                     |
|         |                                           |
|         |                                           |
|         |           11/08/03 07:18 PM               |
|         |                                           |
|---------+------------------------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |       To:       <[EMAIL PROTECTED]>                                                
                      |
  |       cc:                                                                          
                                          |
  |       Subject:  [Hibernate] Why serializable?                                      
                                          |
  
>------------------------------------------------------------------------------------------------------------------------------|




Why AbstractType.disassemble(..) returns Serializable? It fails with blob
fields (ClassCastException). Which means that you can't use JCS cache with
blob types. Of course, It's kind of strange that blobs are not
serializable,
but the fact is they are not.

Regards,
-- Mike




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




**********************************************************************
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.

This email, including all attachments, is confidential.  If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments.  Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error.  If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**********************************************************************






-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to