Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.1
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Sometimes, a @ManyToOne field has to be the Primary Key, or part of the Primary Key. Adding @Id to the @ManyToOne does not help, an additional property with duplicates the referenced id is needed:

      (userId and User field in the Phonenumber class - to be able to set @Id on userId):
      http://pastebin.com/d51e021e2

      Allowing @Id on @ManyToOne fields (which would make the JoinColumn a PK) would help here. Any maybe this would also fix DDC-116

      1. ddc117_20100815.patch
        29 kB
        Benjamin Eberlei
      2. ddc117-20101228.diff
        28 kB
        Benjamin Eberlei
      3. ddc117test_cascade_persist.patch
        1 kB
        s9e

        Issue Links

          Activity

          Nico Kaiser created issue -
          Roman S. Borschel made changes -
          Field Original Value New Value
          Fix Version/s 2.1 [ 10022 ]
          Affects Version/s 2.0-ALPHA3 [ 10029 ]
          Benjamin Eberlei made changes -
          Assignee Roman S. Borschel [ romanb ] Benjamin Eberlei [ beberlei ]
          s9e made changes -
          Attachment DDC117-2Test.php [ 10728 ]
          Benjamin Eberlei made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Benjamin Eberlei made changes -
          Attachment DDC117-2Test.php [ 10728 ]
          Benjamin Eberlei made changes -
          Attachment ddc117_20100815.patch [ 10741 ]
          s9e made changes -
          Attachment ddc117test_cascade_persist.patch [ 10742 ]
          Benjamin Eberlei made changes -
          Link This issue is duplicated by DDC-795 [ DDC-795 ]
          Benjamin Eberlei made changes -
          Attachment ddc117-20101228.diff [ 10902 ]
          Benjamin Eberlei made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 10344 ] jira-feedback [ 14157 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 14157 ] jira-feedback2 [ 16021 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 16021 ] jira-feedback3 [ 18274 ]

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Nico Kaiser
            • Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: