Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-717

Modeler doesn't manage FK constraints with MYSQL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0 branch
    • 3.0M1, 3.0
    • Modeler
    • None
    • OS: Kubuntu
      DB: MYSQL5

    Description

      Hello,

      I used CayenneModeler to design my tables and classes and would like to generate the corresponding SQL, to update my MySQL database. But unfortunately, the "create FK support" option doesn't make any difference, and no foreign key sql statement is generated.
      Here is an example of a relation i want to appear in my DB :
      <db-relationship name="toCountry" source="address" target="country" toMany="false">
      <db-attribute-pair source="country" target="id"/>
      </db-relationship>
      <db-relationship name="toState" source="address" target="state" toMany="false">
      <db-attribute-pair source="state" target="id"/>
      </db-relationship>

      Attachments

        Activity

          People

            Unassigned Unassigned
            skaboss Landry Soules
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: