• Post Reply Bookmark Topic Watch Topic
  • New Topic

help with Hibernate mapping  RSS feed

 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I am new to Hibernate and a little a bit confused.

I have the following tables:
user, video, ques, ans

I have the table user_video_ques_ans_rl with the fields:
id, userid, videoid, quesid, ansid

which is used to store for each userid in which videoid case what answered he has answered to which table

I created regular hbm.xml files for user, video, ques, ans.

do i have to create a file for user_video_ques_ans_rl table who keeps the relationship between them?

how will it look like?

 
Fabio Araujo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this using annotations....


I hope this can help you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!