2 Replies Latest reply on Apr 23, 2007 9:29 AM by Panagiotis Korros

    how to make seam generate-entities detect many to many relat

    Panagiotis Korros Newbie

      I am using 'seam generate-entities' to reverge engineer an existing database.

      It seams that it doesn't correclty recognise a many to many relation i have and it generates a new entity to represent the relashioship.

      Currently my schema is:

      Table 'Request' id: 'RequestID'
      Table 'Document' id: 'DocumentID'

      many to many relationship table: 'RequestDocumentIDs'
      columns: 'RequestID', 'DocumentID' (with foreign key contraints)

      How does seam detects many to many relatioships? do i have to give the tables specific names?