Search in sources :

Example 1 with FaReportDocumentDao

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);
}
Also used : FaReportDocumentDao(eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao) PostConstruct(javax.annotation.PostConstruct)

Example 2 with FaReportDocumentDao

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());
}
Also used : FaCatchDao(eu.europa.ec.fisheries.ers.fa.dao.FaCatchDao) VesselIdentifierDao(eu.europa.ec.fisheries.ers.fa.dao.VesselIdentifierDao) FaReportDocumentDao(eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao) FishingTripIdentifierDao(eu.europa.ec.fisheries.ers.fa.dao.FishingTripIdentifierDao) FishingTripDao(eu.europa.ec.fisheries.ers.fa.dao.FishingTripDao) FishingActivityDao(eu.europa.ec.fisheries.ers.fa.dao.FishingActivityDao) VesselTransportMeansDao(eu.europa.ec.fisheries.ers.fa.dao.VesselTransportMeansDao) ActivityConfigurationDao(eu.europa.ec.fisheries.ers.fa.dao.ActivityConfigurationDao) PostConstruct(javax.annotation.PostConstruct)

Example 3 with FaReportDocumentDao

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());
}
Also used : FaReportDocumentDao(eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao) FishingActivityDao(eu.europa.ec.fisheries.ers.fa.dao.FishingActivityDao) PostConstruct(javax.annotation.PostConstruct)

Example 4 with FaReportDocumentDao

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();
    }
}
Also used : FaReportDocumentDao(eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao) PostGres(eu.europa.ec.fisheries.ers.service.util.PostGres) FluxFaReportMessageDao(eu.europa.ec.fisheries.ers.fa.dao.FluxFaReportMessageDao) Oracle(eu.europa.ec.fisheries.ers.service.util.Oracle) PostConstruct(javax.annotation.PostConstruct)

Aggregations

FaReportDocumentDao (eu.europa.ec.fisheries.ers.fa.dao.FaReportDocumentDao)4 PostConstruct (javax.annotation.PostConstruct)4 FishingActivityDao (eu.europa.ec.fisheries.ers.fa.dao.FishingActivityDao)2 ActivityConfigurationDao (eu.europa.ec.fisheries.ers.fa.dao.ActivityConfigurationDao)1 FaCatchDao (eu.europa.ec.fisheries.ers.fa.dao.FaCatchDao)1 FishingTripDao (eu.europa.ec.fisheries.ers.fa.dao.FishingTripDao)1 FishingTripIdentifierDao (eu.europa.ec.fisheries.ers.fa.dao.FishingTripIdentifierDao)1 FluxFaReportMessageDao (eu.europa.ec.fisheries.ers.fa.dao.FluxFaReportMessageDao)1 VesselIdentifierDao (eu.europa.ec.fisheries.ers.fa.dao.VesselIdentifierDao)1 VesselTransportMeansDao (eu.europa.ec.fisheries.ers.fa.dao.VesselTransportMeansDao)1 Oracle (eu.europa.ec.fisheries.ers.service.util.Oracle)1 PostGres (eu.europa.ec.fisheries.ers.service.util.PostGres)1