Mentions légales du service

Skip to content
Snippets Groups Projects

Develop evs6

Merged Achraf Achkari requested to merge develop-evs6 into master-evs6
58 files
+ 5377
1284
Compare changes
  • Side-by-side
  • Inline
Files
58
package net.ihe.gazelle.mca.contentanalyzer.adapters.analysis.dao;
import net.ihe.gazelle.evsclient.domain.validation.ValidationRef;
import net.ihe.gazelle.mca.contentanalyzer.application.interfaces.AnalysisPartDao;
import net.ihe.gazelle.mca.contentanalyzer.business.model.AnalysisPart;
import net.ihe.gazelle.mca.contentanalyzer.business.model.AnalysisPartQuery;
@@ -28,4 +29,10 @@ public class AnalysisPartDaoImpl implements AnalysisPartDao {
entityManager.flush();
return merged;
}
public AnalysisPart getByValidation(ValidationRef validation) {
AnalysisPartQuery analysisPartQuery = new AnalysisPartQuery(entityManagerFactory.createEntityManager());
analysisPartQuery.validation().oid().eq(validation.getOid());
return analysisPartQuery.getUniqueResult();
}
}
Loading