2 Replies Latest reply on Sep 11, 2007 4:00 PM by kmmc

    Newbie Seam generate-entities question?

    kmmc

      I am attempting to use generate-entities to reverse engineer an existing database. Seam appears to be generating files for each table in the database, but there does not seem to be any code or annotations to represent the relationships between the tables. Should there be more to the seam generated files or am I expecting too much?

        • 1. Re: Newbie Seam generate-entities question?
          trickyvail

          Yes, seam-gen will create entity relationships.

          If you are not seeing any it may be that you have not created the referential relationships for the foreign keys in your tables.

          • 2. Re: Newbie Seam generate-entities question?
            kmmc

            Thank you. I believe you were correct about referential relationships not being set properly.

            I realized that my database tables were of type MyISAM so I switched to a different MySQL server that was capable of handling tables of type InnoDB. It now appears that the relationships between the tables are being defined correctly.