Issue 15917: bug in the uml to rdbms transformation example (qvt-rtf) Source: (, ) Nature: Clarification Severity: Minor Summary: In the UML to rdbms transformation code given in section A.2.3 : -- mapping to update a Table with new columns of foreign keys mapping Association::asso2table() : Table when {self.isPersistent();} { init {result := self.destination.resolveone(Table);} foreignKey := self.map asso2ForeignKey(); column := result.foreignKey->column ; } The mapping asso2table is supposed to update a table by adding new columns, but with the last line of the mapping, the existing columns are all replaced by the new ones. I suggest to replace the last line with : column += result.foreignKey->column ; Resolution: yes Revised Text: In A.2.3 mapping Association::asso2table() change column := result.foreignKey->column ; to column += result.foreignKey->column ; Actions taken: January 7, 2011: received issue July 15, 2014: closed issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 07 Jan 2011 05:47:44 -0500 To: Subject: Issue/Bug Report ******************************************************************************* Name: Xavier Dolques Employer: mailFrom: xavier.dolques@laposte.net Terms_Agreement: I agree Specification: Meta Object Facility (MOF) 2.0 Query/View/Transformation Specification Section: A.2.3 FormalNumber: ptc/09-12-05 Version: 1.1 Doc_Year: 2009 Doc_Month: December Doc_Day: 05 Page: 175 Title: bug in the uml to rdbms transformation example Nature: Clarification Severity: Minor CODE: 3TMw8 B1: Report Issue Description: In the UML to rdbms transformation code given in section A.2.3 : -- mapping to update a Table with new columns of foreign keys mapping Association::asso2table() : Table when {self.isPersistent();} { init {result := self.destination.resolveone(Table);} foreignKey := self.map asso2ForeignKey(); column := result.foreignKey->column ; } The mapping asso2table is supposed to update a table by adding new columns, but with the last line of the mapping, the existing columns are all replaced by the new ones. I suggest to replace the last line with : column += result.foreignKey->column ;