Relation many-to-many with attributes : how ?
Posted
by mada
on Stack Overflow
See other posts from Stack Overflow
or by mada
Published on 2010-02-12T08:52:54Z
Indexed on
2010/05/01
0:57 UTC
Read the original article
Hit count: 285
Hi,
Excuse me for my poor english in advance as it is not my mother tongue.
Like in this example:
http://www.xylax.net/hibernate/manytomany.html
But i have in the table foo-bar 2 attributes which are not part of the primary or foreign keys.: one boolean(A) & one string(B).
I know how to map it without attributes but not in this case.
I have not found an answer in the documentation.
I need to know please how to map it & what kind of collection i have to declare in my class Foo.
Thanks in advance for your answer.
I really appreciate the time given by you.
© Stack Overflow or respective owner