Skip to content
Snippets Groups Projects
Commit 6088fc9a authored by felmer's avatar felmer
Browse files

SP-357, BIS-242: bug in SampleDAO fixed.

SVN: 27506
parent 64a5fb18
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,10 @@ public class SampleDAO extends AbstractGenericEntityWithPropertiesDAO<SamplePE>
{
validatePE(sample);
sample.setCode(CodeConverter.tryToDatabase(sample.getCode()));
if (sample.getModificationDate() == null)
{
sample.setModificationDate(new Date());
}
hibernateTemplate.saveOrUpdate(sample);
// Hibernate behaves as follows: If a PE bean property annotated with
// @OptimisticLock(excluded = true) (as it is the case for modifier and modification date)
......
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