IDEA 6.0 - Persistence Unit many-to-many not working?

What are the pre-requisites to get a many to many mapping with the EJB3 "Generate Persistence Mapping Tool"?
The okay button seems grayed out every time I try to map a many-to many relationship.
Please see the attached picture for the database layout, etc...



Attachment(s):
Picture 4.png
2 comments

MySQL tables seem to need to be of type "innodb". Seems to fix the issue.

0

milmber wrote:

What are the pre-requisites to get a many to many mapping with the EJB3 "Generate Persistence Mapping Tool"?
The okay button seems grayed out every time I try to map a many-to many relationship.
Please see the attached picture for the database layout, etc...


------------------------------------------------------------------------


The screenshot shows that JoinColumns are not set for the JoinTable.

Regards,
Gregory Shrago
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.