Hi serge

1. Blob internal values are stored in a byte array before creating a BlobFileValue. It causes an unnecessary overhead and it might cause an out of memory error. I think the ORM Object should delegate in a BlobFileValue instance the reading bytes task.


Is this possible ?
I think it is, at least with OJB. In ORMBlobValue you should change private byte[] blobValue to private BlobFileValue blobValue;
In OJB you can use a FieldConversion to create the BlobFilevalue, the resultset inputstream can be passed to the BlobFileValue constructor.


e.g.
new BLOBFileValue(rs.getBinaryStream([number or name of the column]))

I don't know if it's possible with hibernate.

2. The other internal values are stored in a VARCHAR(100), it might cause data loss. I don't know whether jackrabbit has any limitation regarding the String value length. If it hasn't, it should be stored in a TEXT column.
Yes this is a documented limitation (in the README). I just wanted to get an implementation in place, hoping that others would help out making it more solid.
Sorry, I missed it :(

hehe yeah I started with Hibernate on this project too. It's a very powerful tool, but also quite tricky to get it to work right. But once it's properly integrated, it can be very fast !
thanks for the advice


regards edgar

Regards, Serge Huber.

Reply via email to