top of page

One-Many,Many-One

  • Writer: Anand Nerurkar
    Anand Nerurkar
  • May 1, 2024
  • 1 min read
ree

ree

in this case both entity managing relationship-key, so how does it impact

ree
ree
ree

when run, below table created

questions table

ree

answer table

ree

question-answer table

ree

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.

ree

ow run it, there is no question-anser table now

ree

now retrieve

ree

 
 
 

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
  • Facebook
  • Twitter
  • LinkedIn

©2024 by AeeroTech. Proudly created with Wix.com

bottom of page