Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Associacion n<->m

 
tarik el berrak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm new to hibernate and have a question :

I have a class A mapped to table TA(idA,......)
I want to manage an association (n,m) between my class A and a non persistent class B, so I create an association table called TC(idA,name,description)
which its columns correspond exactly to class B attribute (attributes of B are its key)

So, How can I annotate that to manage my association

Regards


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic