Issue 11686: Section: A1.1.1 (qvt-rtf) Source: (, ) Nature: Clarification Severity: Minor Summary: top relation AssocToFKey { pKey : Key; ... when { ...; pKey = destTbl.key; } ... } In my opinion that doesn't work. pKey is of type Key, destTbl.key is of type OrderedSet key, isn't it ? Resolution: Section: A1.1.1 top relation AssocToFKey { pKey : Key; ... when{ ...; pKey = destTbl.key; } ... } In my opinion that doesn't work. pKey is of type Key, destTbl.key is of type OrderedSet key, isn't it ? Discussion Yes. Well at least it's a Collection; the diagram leaves an ambiguity. Comparison with the QVTc solution shows that the 'primary' key should be selected, and initialized on creation. Loading the example in the Eclipse QVTr editor reveals many more problems. Revised Text: In A.1.1.1 Replace all usage of "//" by "--" Replace key Table (name, schema); key Column (name, owner); key Key (name, owner); by key Table {name, schema}; key Column {name, owner}; key Key {name, owner}; Replace key=k:Key {name=cn+'_pk', column=cl}}; by _'key'=k:Key {name=cn+'_pk', column=cl, kind='primary'}}; Replace srcTbl, destTbl: Table; pKey: Key; by srcTbl, destTbl: SimpleRDBMS::Table; pKey: SimpleRDBMS::Key; Replace pKey = destTbl.key; by pKey = destTbl._'key'->select(kind='primary'); Replace function PrimitiveTypeToSqlType(primitiveTpe:String):String by query PrimitiveTypeToSqlType(primitiveType:String):String Replace endif endif; by endif endif Actions taken: November 26, 2007: received issue December 22, 2015: Resolved March 29, 2016: closed issue Discussion: I think that the intention is for pKey to 'loop' over each destTbl.key, but I cannot see text to justify this. Collection matching needs revision, in particular the untenable prohibition on nested collections. Disposition: Deferred End of Annotations:===== m: webmaster@omg.org Date: 26 Nov 2007 09:32:49 -0500 To: Subject: Issue/Bug Report -------------------------------------------------------------------------------- Name: Siegfried Nolte Company: Siegfried Nolte mailFrom: siegfried@siegfried-nolte.de Notification: Yes Specification: MOF QVT Section: A1.1.1 FormalNumber: ptc/07-07-07 Version: FTF RevisionDate: 07/07/07 Page: 166 Nature: Clarification Severity: Minor HTTP User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.1) Description top relation AssocToFKey { pKey : Key; ... when { ...; pKey = destTbl.key; } ... } In my opinion that doesn't work. pKey is of type Key, destTbl.key is of type OrderedSet key, isn't it ?