This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Associacion n<->m  RSS feed

 
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


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!