Uploaded image for project: 'OJB'
  1. OJB
  2. OJB-67

Add a new check to the xdoclet module to avoid weird mapping errors of one-to-many relationships

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.3, 1.1 CVS
    • 1.0.x CVS, 1.1 CVS
    • None
    • None
    • OJB 1.0.3

    Description

      I had a weird transaction problem, where I couldn't manage to store a one-to-many relationship within a transaction.
      This was quite misleading, because in fact, that was just a mapping problem.
      I mistakenly used both foreignkey and remote-foreignkey pointing at the same column, though the remote-foreignkey wasn't needed since that was a one-to-many relationship and not a many-to-many relationship.

      So the idea would be to add a sanity check to verify that you can't have both foreignkey and remote-foreignkey attributes pointing at the same column.

      Attachments

        Activity

          People

            tomdz Thomas Dudziak
            glaforge Guillaume Laforge
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: