Search in sources :

Example 1 with FluxFaReportMessageDao

use of eu.europa.ec.fisheries.ers.fa.dao.FluxFaReportMessageDao 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)1 FluxFaReportMessageDao (eu.europa.ec.fisheries.ers.fa.dao.FluxFaReportMessageDao)1 Oracle (eu.europa.ec.fisheries.ers.service.util.Oracle)1 PostGres (eu.europa.ec.fisheries.ers.service.util.PostGres)1 PostConstruct (javax.annotation.PostConstruct)1