Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-1495

ORM Error Using "This" scope to populate man-to-one relationship

    Details

      Description

      When calling a super.methodXXX() on an entity that uses the base class's method to populate a many-to-one bi-directional relationship with "this" scope... you get an org.hibernate.NonUniqueObjectException.

      To recreate this issue, run the attached test case. You will see that it runs and dumps a "book" entity. Then go into the book entity an un-comment the setDefaultAuthor() method that calls super.setDefaultAuthor()

      More information on the genesis of this error can be found here: https://groups.google.com/d/topic/railo/7-VfotlxvFY/discussion

        Gliffy Diagrams

          Attachments

          1. jira-1495.zip
            6 kB
          2. ORMBugTestCase.zip
            3 kB
          3. railo_1495_v2.zip
            3 kB
          4. railo_1495.zip
            3 kB

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                gregmoser Greg Moser
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: