Object pollAnswered = getCurrentSession().createSQLQuery(
"select * from TJ_ANSWERED_ASW where pol_id = "+pollId+" and prf_log = '"+logid+"'").uniqueResult();
with this query, you get a unique result when you know the result of the query is always going to b...