Hi there,
I have 2 classes to relate in a one-to-many bidirectional relationship.
-------------------------------
Class Question:
List<Choice> fewChoices;
Class Choice:
Question question;
-------------------------------
I have done the annotations to the relation successfully. The problem comes when I had one more list of choices to the Question class.
-------------------------------
Class Question:
List<Choice> fewChoices;
List<Choice> manyChoices;
Class Choice:
Question question;
-------------------------------
In this situation what kind of annotations should I do? I need 2 different tables for this 2 different lists, I think. I cant just mix all toghether in one single table and I cant use 2 different classes: FewChoice and ManyChoice. I dont know what annotations should do. Thanks in advance.
|