I have a sample query like the following
String hql = "from Stock s where s.stockCode = :stockCode"; List result = session.createQuery(hql) .setPara