Edgar Poce wrote:
Hi serge
Edgar Poce wrote: > I'm trying to remove all the ORM specific objects.
the result was not successful :(. Unfortunately I couldn't find the way.
Sorry to hear that. When I worked on the structure, I hit a few brick walls myself, and reluctantly created the ORM-specific objects (I don't like copies if I can avoid them), but this is the only way I managed to make it work with both OJB and Hibernate. Maybe by changing some of the implementations of the main project we could remove the need for these, but I'm not sure if those modifications should be there. This is more a persistence manager specific problem than a Jackrabbit problem.
btw, while diving in the code I found a couple of issues.
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 ?
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.
Both issues are common to both implementations. I didn't write a patch because I never used hibernate :(.
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 !
Regards, Serge Huber.
