One-Many,Many-One
- Anand Nerurkar
- May 1, 2024
- 1 min read
in this case both entity managing relationship-key, so how does it impact
when run, below table created
questions table
answer table
question-answer table
now in above, extra table question-answer is created b/c of one-many annotation for the answer list, so we do not want this, so we will use mapped by as below to resolve this.
ow run it, there is no question-anser table now
now retrieve
Comments