Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14480

camel-salesforce - Duplicate Properties between Relationship Name and Child Relationship Name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.7.0
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When two SObjects have a one-to-one relationship and one of the objects in that relationship does not have a plural form the resulting DTO has duplicate properties causing compilation to fail. Similarly when the SObject with no plural form has a hierarchical child parent relationship with itself.

       

      EX: Equipment_c has a relationship with Yard_Slot_c, were they both lookup to each other for a 1-to-1 relationship. Yard_Slot_c.java DTO has duplicate properties because both its Relationship *and its Child Relationship are named *Equipment_r.

       

      EX2: Equipment_c has a parent/child relationship with itself causing both the Parent and Child relationship names to be Equipment_r.

       

      **Salesforce allows and handles both these scenarios properly, however the resulting DTO classes do not compile because of the duplicate properties and duplicate getters.

       

      An easy fix would be to always append the suffix List on child relationship properties in DTO.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                djorgji Dhimitraq Jorgji
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: