jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Fwd: Bug in HibernatePersistenceManager?
Date Thu, 17 Mar 2005 15:34:43 GMT
serge,

could you please verify and comment on that? it seems like thomas has 
found a bug in HibernatePersistenceManager.

thanks
stefan


---------- Forwarded message ----------
From: Thomas Wegmueller <mail@wegmueller.com>
Date: Thu, 17 Mar 2005 16:18:27 +0100
Subject: Bug in HibernatePersistenceManager?
To: jackrabbit-dev@incubator.apache.org


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