i just want to know the difference between using @ManyToMany relationship wit @JoinColumn
and using it without @JoinColumn
i just want to know the difference between using @ManyToMany relationship wit @JoinColumn and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A many-to-many association always needs a join table. A join column is not sufficient: it only enables a one-to-many association.
If you don’t specify any
@JoinTableannotation on the association, then default values will be used. Hibernate wil use a join table with a default name and default columns composed from the names and IDs of the associated entities.