facebook

many to many with link table

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #288698 Reply

    DIS
    Member

    I’m trying to get a many-to-many relation with a link table working. I’m using mysql, jpa and toplink. I have a 3.2m tar file of the entire project. I have the sql backup of the database so if you have mysql it would be easy to generate the database. The relation is users to roles. The problem is that the roles don’t seem to be correct. Anyone interested in taking a look just let me know and I’ll send you the tar file. I’m most likely doing something really stupid but I can’t see it.

    Thanks for your help.

    #288699 Reply

    DIS
    Member

    I also have a tar file of only 34k that excludes the jar files if that is more attractive.

    #288700 Reply

    DIS
    Member

    I’m soooo obtuse. I had foreign keys on my user and role tables when I needed foreign keys on my link table. I’m still willing to share the code with anyone interested.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: many to many with link table

You must be logged in to post in the forum log in