You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Serge Huber <sh...@jahia.com> on 2005/03/18 16:54:34 UTC
Patch for ORM persistence project
In relation to http://issues.apache.org/jira/browse/JCR-63, I've did the
same changes for the Hibernate persistence manager.
The patch file may be found here :
http://www.jahia.org/~loom/orm-20050318-1646.patch
Basically what it includes :
- tests should run better, had to update due to the changes in the
configuration
- All Hibernate transactions should now be properly scoped in the
store(changelog) method
- includes the correction on Blobs signaled by Thomas Wegmueller
I'm still having the problem of the references not being properly
processed. If anybody has any idea what's going on (it happens in both
PersistenceManager implementations) I'd be very grateful as I don't have
all that much time to spend on this.
Regards,
Serge Huber.
Re: Patch for ORM persistence project
Posted by Edgar Poce <ed...@gmail.com>.
hi serge
Serge Huber wrote:
> I'm still having the problem of the references not being properly
> processed. If anybody has any idea what's going on (it happens in both
> PersistenceManager implementations) I'd be very grateful as I don't have
> all that much time to spend on this.
I think that in OJB the references are handled properly. In hibernate
you have to call destroy(NodeReferences) and then store all the
modified references. It's not a good solution, but I don't know of any
better until the references handling is modified.
I added this line in OJB:
// destroy all the references before saving
destroy(refs, broker);
// Store part
...
>
> Regards,
> Serge Huber.
>
regards
edgar