I need to create a basic Question/Answer parent/child relationship, i've already got that down but I need to have
n Answers per Question
and every Answer needs to have a letter associated to it, like a, b, c, d, etc
how should I model this, who/where should I assign this letter?
I was thinking of doing it in Question.addAnswer(Answer) (all this does is add Answer to a Set and sets the parent of Anser to this (current Question)) is there any way hibernate can handle assigning this letter? or maybe it could generate it somehow, like say I have answer.ids 1,5,8,10 the id to letter mapping should be 1=a, 5=b, 8=c, 10=d
|