[jboss-jira] [JBoss JIRA] (JBRULES-3556) Support mappings between trait and core class fields

Mario Fusco (JIRA) jira-events at lists.jboss.org
Fri Aug 17 12:01:15 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved JBRULES-3556.
----------------------------------

    Resolution: Done


Fixed by https://github.com/droolsjbpm/drools/commit/279526fd2de260b00560fbe4c802d62023112f30
                
> Support mappings between trait and core class fields
> ----------------------------------------------------
>
>                 Key: JBRULES-3556
>                 URL: https://issues.jboss.org/browse/JBRULES-3556
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler, drools-core
>    Affects Versions: 5.4.0.Final
>            Reporter: Davide Sottara
>            Assignee: Davide Sottara
>            Priority: Minor
>             Fix For: 5.5.0.Beta1
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list