]
Mario Fusco resolved JBRULES-3556.
----------------------------------
Resolution: Done
Fixed by
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: