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

Support mappings between trait and core class fields

    XMLWordPrintable

    Details

    • Estimated Difficulty:
      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

            Assignee:
            dsotty Davide Sottara (Inactive)
            Reporter:
            dsotty Davide Sottara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: