use of eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao in project UVMS-ActivityModule-APP by UnionVMS.
the class FAQueryServiceBean method init.
@PostConstruct
public void init() {
String dbDialect = System.getProperty("db.dialect");
if ("oracle".equalsIgnoreCase(dbDialect)) {
em = oracle;
} else {
em = postgres;
}
FAReportDAO = new FaReportDocumentDao(em);
}
use of eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao in project UVMS-ActivityModule-APP by UnionVMS.
the class FishingTripServiceBean method init.
@PostConstruct
public void init() {
initEntityManager();
fishingTripIdentifierDao = new FishingTripIdentifierDao(getEntityManager());
vesselIdentifierDao = new VesselIdentifierDao(getEntityManager());
fishingActivityDao = new FishingActivityDao(getEntityManager());
faReportDocumentDao = new FaReportDocumentDao(getEntityManager());
faCatchDao = new FaCatchDao(getEntityManager());
fishingTripDao = new FishingTripDao(getEntityManager());
vesselTransportMeansDao = new VesselTransportMeansDao(em);
activityConfigurationDao = new ActivityConfigurationDao(getEntityManager());
}
use of eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivityServiceBean method init.
@PostConstruct
public void init() {
initEntityManager();
fishingActivityDao = new FishingActivityDao(getEntityManager());
faReportDocumentDao = new FaReportDocumentDao(getEntityManager());
}
use of eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao in project UVMS-ActivityModule-APP by UnionVMS.
the class FluxMessageServiceBean method init.
@PostConstruct
public void init() {
initEntityManager();
faReportDocumentDao = new FaReportDocumentDao(getEntityManager());
fluxReportMessageDao = new FluxFaReportMessageDao(getEntityManager());
dialect = new PostGres();
if ("oracle".equals(properties.getProperty("database.dialect"))) {
dialect = new Oracle();
}
}
Aggregations