query.setParameter("flut", flut);
query.setParameter("flno", flno);
if (!isRegnNull)
query.setParameter("regn", regn);
query.setParameter("org3", HpEKConstants.EK_HOPO);
EntDbAfttab res = null;
try {
res = (EntDbAfttab) query.getSingleResult();
if (res != null)
LOG.debug("Dept Flight URNO : <{}> RKEY: <{}>", res.getUrno(),
res.getRkey());
} catch (NoResultException e) {
LOG.debug("AftRecord flight <{}> not found", flno);
} catch (NonUniqueResultException nur) {
LOG.error("AftRecord flight <{}> not found. {}", flno,
nur.getMessage());