*/
public Answer findUserAnswerForQuestion(User user, Question question) {
DbOomQuery dbOom = query(sql("select $C{a.*} from $T{Answer a} join $T{Vote v} on $v.answerId=$a.id where $v.userId=:userId and $a.questionId=:questionId"));
dbOom.setLong("userId", user.getId());
dbOom.setLong("questionId", question.getId());
return dbOom.autoClose().find(Answer.class);
}
/**
* Finds answer by vote id.
*/