As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public void recordChangeId(NodeRef nodeRef) { NodeKey key = new NodeKey(nodeRef); NodeStatus status = (NodeStatus) getHibernateTemplate().get(NodeStatusImpl.class, key); if (status == null) { // the node never existed or the status was deleted return; } else { // make sure that the status has the latest transaction attached Transaction currentTxn = getCurrentTransaction(); status.setTransaction(currentTxn); } }
getHibernateTemplate().saveOrUpdate(status);