Skip to content
Snippets Groups Projects
Commit 03268ce5 authored by tpylak's avatar tpylak
Browse files

minor: add logging to find integration tests problem

SVN: 21117
parent cc52fdc1
No related branches found
No related tags found
No related merge requests found
......@@ -348,13 +348,13 @@ final class ExternalDataDAO extends AbstractGenericEntityWithPropertiesDAO<Exter
// NOTE: 'VERSIONED' makes modification time modified too
return session
.createQuery(
"UPDATE VERSIONED " + TABLE_NAME
"UPDATE VERSIONED "
+ TABLE_NAME
+ " SET status = :status, presentInArchive = :presentInArchive"
+ " WHERE code IN (:codes) ")
.setParameter("status", status)
.setParameter("presentInArchive", presentInArchive)
.setParameterList("codes", dataSetCodes)
.executeUpdate();
.setParameterList("codes", dataSetCodes).executeUpdate();
}
});
hibernateTemplate.flush();
......@@ -377,7 +377,18 @@ final class ExternalDataDAO extends AbstractGenericEntityWithPropertiesDAO<Exter
dataset.setCode(CodeConverter.tryToDatabase(dataset.getCode()));
final HibernateTemplate template = getHibernateTemplate();
if (operationLog.isInfoEnabled())
{
operationLog.info(String.format("ADD BEFORE SAVE: data set id '%d'.",
HibernateUtils.getId(dataset)));
}
template.save(dataset);
if (operationLog.isInfoEnabled())
{
operationLog.info(String.format("ADD BEFORE FLUSH: data set id '%d'.",
HibernateUtils.getId(dataset)));
}
template.flush();
if (dataset instanceof ExternalDataPE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment