|
|
Re: Qualified name of reference [message #1850345 is a reply to message #1850344] |
Fri, 25 February 2022 16:39 |
Christopher Gerking Messages: 115 Registered: April 2011 |
Senior Member |
|
|
Ed Willink wrote on Fri, 25 February 2022 10:53The 'obvious' answer is to use a different mapping signature so that the new 'self' is the old 'self.a2a1'. Exactly. Thus you should map both A and A2 to B. Such n:1 mappings can be realized using init sections:
mapping ConceptA :: conceptA2conceptB : ConceptB {
init {
result := self.a2a1.map conceptA12conceptB();
}
}
mapping ConceptA1 :: conceptA12conceptB : ConceptB {
result.name := self.name;
}
[Updated on: Fri, 25 February 2022 17:08] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02810 seconds