I'm still learning all the ins and outs of web development, scala, play 2.0, and squeryl and I'm trying to set up a ManyToMany relation between two of my tables.
I've looked over the information found here but I'm having trouble with the intermediary table. I've looked all over and I can't find a good example of how it should be structured.
I'm using MySQL for my database and I've tried using foreign keys and primary keys in the intermediary table, but neither have worked, or maybe I'm just doing it wrong. So, could someone give me a clear example of how the intermediate table should look?
For a little more information, the basic structure of the two tables I want to relate are as follows.
tableOne (
name varchar(255)
);
tableTwo (
name varchar(255),
idCode varchar(255)
);
They will be related by the name in tableOne and the idCode in tableTwo which is just an abbreviated form of tableTwo's name column.
So using MySQL, squeryl, and the format shown in the link, can anyone help me get this going?