Joined: Fri Sep 28, 2007 6:28 pm Posts: 4
|
Hi,
I want to do a query by Example...My example would be a Question. So i pass a Question and i want to get a list of all the same question which i have stored in the DB.
My question Object is defined as follow.It has a collection of possible answers as well as a text property.
-----------------------
Question{
Set<Answer> possibleAnswers;
String questionText
}
Answer {
String answerText;
int answerWight;
}
-----------------------
How could i do that?
thanks.
|
|