jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Wegmueller <m...@wegmueller.com>
Subject Bug in HibernatePersistenceManager?
Date Thu, 17 Mar 2005 15:18:27 GMT
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

Mime
View raw message