[
https://issues.apache.org/jira/browse/JCR-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jukka Zitting resolved JCR-263.
-------------------------------
Resolution: Won't Fix
Assignee: Jukka Zitting
Resolving as Won't Fix. The Hibernate PM is obsolete.
> HibernatePersistenceManager fails to store NodeReferences
> ---------------------------------------------------------
>
> Key: JCR-263
> URL: https://issues.apache.org/jira/browse/JCR-263
> Project: Jackrabbit
> Issue Type: Bug
> Components: sandbox
> Affects Versions: 1.0
> Reporter: Joseph Chen
> Assignee: Jukka Zitting
>
> In the HibernatePersistenceManager, the method
> store(NodeReferences refs, Session session) throws ItemStateException,
> HibernateException
> does not properly persist NodeReferences.
> The problem is caused by these lines:
> // destroy all the references before saving
> destroy(refs, session);
> which come before the while loop that stores the references. Since destroy()
> calls refs.clearAllReferences(), the while loop does no work.
> The solution is to simply replace the destroy() method call with the HQL that
> the destory() executes.
> i.e.
> session.delete("from
> org.apache.jackrabbit.core.state.orm.ORMNodeReference as nf where
> nf.targetId='" +
> refs.getTargetId().toString() +
> "'");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.