Does anyone have experience with transformation scripts regarding mappings? i have a function that sets mappings accordingly:
RelationalDesign.getRMExtendedMap().createMapping(entity, table);
RelationalDesign.getRMExtendedMap().createMapping(attribute, column);
this works good so far - now i want to undo this. so delete existing mappings again (or remove them, since there seems to be no delete option).
i have tried a few things, but i am not getting anywhere... the documentation of the XML-API (datamodeler/xmlmetadata) is insufficient in this respect and I did not find any further information.
thanks to some try&error attempts I managed to find a way to use the following function calls:
RelationalDesign.getRMDeletedMap().addDeletedMapping(thismapping);
thismapping.setDeletedID(thismapping.getID());
but they do not run without errors