I have three tables.
- question ( forumId as FK)
- answer (questionId as FK)
- forum
- forum member (forumId as FK)
There can be multiple forums so i want to add a method that returns me all answer from a member in a given forum.
I dont know what is the hibernate query i can do. To get the list of answer bound to the given member i do this
return HibernateUtil.query(Answer.class,"authorId",member.getId());
What can i do to get a list of answer from a member in a given forum.