[jboss-jira] [JBoss JIRA] (JBRULES-3556) Support mappings between trait and core class fields
Davide Sottara (JIRA)
jira-events at lists.jboss.org
Sat Jun 23 17:52:12 EDT 2012
Davide Sottara created JBRULES-3556:
---------------------------------------
Summary: 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