Query q = session.createQuery(query.toString());
int queryPos = 0;
q.setString(queryPos++, questionId);
q.setString(queryPos++, choiceId);
Iterator itr = q.list().iterator();
while (itr.hasNext()) {
PollsVoteHBM pollsVoteHBM = (PollsVoteHBM)itr.next();
PollsVotePool.remove((PollsVotePK)pollsVoteHBM.getPrimaryKey());
session.delete(pollsVoteHBM);