return result;
}
public EntDbLoadUld findUldByFlightAndULDNo(String flno, String uldno){
//LOG.debug("==== Searching ULD ====");
EntDbLoadUld result = null;
try{
Query query = getEntityManager().createNamedQuery("EntDbLoadUld.findUldByFlightAndULDNo");
query.setParameter("uldCurrFltno", flno);
query.setParameter("uldNumber", uldno);
query.setParameter("recStatus", "X");
List<EntDbLoadUld> resultList = query.getResultList();
if(resultList.size()>0){
result = resultList.get(0);
LOG.debug("Uld record found. ID : {}", result.getId());
}
else
LOG.debug("ULD is not found");
} catch (Exception nur) {
nur.printStackTrace();