Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3556

Support mappings between trait and core class fields

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Low

    Description

      Trait - Core field mapping requires the fields to have the same name and compatible types. Whenever the names cannot be the same, e.g. due to interface naming requirements, it could be desirable to define a custom mapping:

      declare trait X
      tfield : String @Alias("cField")
      end
      declare Y
      cField : String
      end

      Here, tField should be mapped onto the hard field cField, even if the names are different

      Attachments

        Activity

          People

            dsotty Davide Sottara (Inactive)
            dsotty Davide Sottara (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty