Yes you are correct. Actually for consistency, I think the code should rather be :
InternalValue blobValue = InternalValue.create(in);
as it was provided by Edgar in his OJB patch.
Regards, Serge Huber.
Thomas Wegmueller wrote:
Hi list,
i'm new to Jackrabbit and just played around with orm-persistence and there with Hibernate. Could it be that i found a bug in HibernatePersistenceManager?
Shouldn't it read:
Index: HibernatePersistenceManager.java
===================================================================
--- HibernatePersistenceManager.java (revision 156775)
+++ HibernatePersistenceManager.java (working copy)
@@ -180,7 +180,7 @@
ByteArrayInputStream in = new ByteArrayInputStream(
ormBlobValue.getBlobValue());
try {
- BLOBFileValue blobValue = new BLOBFileValue(in);
+ InternalValue blobValue = InternalValue.create( new BLOBFileValue(in),PropertyType.BINARY, null );
internalValueList.add(blobValue);
} catch (Throwable t) {
throw new ItemStateException(
as later the interalValueList is stored in an array of type InternalValue[], and BLOBFileValue is not an InternalValue.
Or am i missing something?
Thanks, Thomas
