Hi,
I'm using Hibernate 2.1.2 with Oracle9i. I'm following the example from the wiki on blobs and oracle and I'm also using the testcase harness from the hibernate junit tests. I get the following exception while trying to save:
[junit] Blobs are not cacheable
[junit] java.lang.UnsupportedOperationException: Blobs are not cacheable
[junit] at net.sf.hibernate.type.BlobType.disassemble(BlobType.java:60)
When I comment out the line:
Configuration.setCacheConcurrencyStrategy(clazz.getMappedClass(), new NonstrictReadWriteCache());
then of course it works. My question is how can I turn off session caching for this specific persistent class that contains the blob after the fact?
Thanks,
Peter
|