import 'platform:/resource/uk.ac.le.cs.moment2.tests.endogenous/20080123_Class2Table/umlrdbms.ecore' ; transformation Uml2Rdbms( inputModel : umlrdbms ) { eq Class2Table { lhs inputModel{ c : Class { name = cName } }; rhs inputModel{ c : Class { name = cName } t : Table { name = cName } }; nac inputModel noTable { t : Table { name = cName } }; } eq Attribute2Column { lhs inputModel{ att : Attribute { name = attName, type = attType, owningClass = c : Class { name = cName } } t : Table { name = cName } }; rhs inputModel{ c : Class { name = cName } t : Table { name = cName, column = col : Column { name = attName, type = attType } } }; } eq DeleteClass { lhs inputModel{ c : Class { } }; rhs inputModel { }; nac inputModel noAttributes { c : Class { ownedAttribute = att : Attribute{} } }; } }