Skip to content
Snippets Groups Projects
Commit 392b858c authored by buczekp's avatar buczekp
Browse files

minor: check business rules before making changes in the DB to avoid unnecessary work

SVN: 16542
parent fa4003fc
No related branches found
No related tags found
No related merge requests found
......@@ -306,8 +306,8 @@ public final class SampleTable extends AbstractSampleBusinessObject implements I
try
{
getSampleDAO().createSamples(samples);
checkBusinessRules();
getSampleDAO().createSamples(samples);
} catch (final DataAccessException ex)
{
throwException(ex, String.format("One of samples"));
......
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