use of eu.europa.ec.fisheries.ers.service.search.builder.FishingTripSearchBuilder in project UVMS-ActivityModule-APP by UnionVMS.
the class FishingTripDao method getQueryForFilterFishingTrips.
private Query getQueryForFilterFishingTrips(FishingActivityQuery query) throws ServiceException {
FishingTripSearchBuilder search = new FishingTripSearchBuilder();
StringBuilder sqlToGetActivityList = search.createSQL(query);
log.debug("SQL:" + sqlToGetActivityList);
Query typedQuery = em.createQuery(sqlToGetActivityList.toString());
return search.fillInValuesForTypedQuery(query, typedQuery);
}
Aggregations