nuno-silva / es16al_35-project

Project for the Software Engineering Course, IST, 2016
1 stars 0 forks source link

XML Import: IDs ignored #201

Open iluxonchik opened 8 years ago

iluxonchik commented 8 years ago

Currently the id attributes of Files in XML import are being ignored (i.e. the id attribution is left to domain entities).

Should this be fixed? Please note, that a "fix" would imply some additional consistency checking when importing from XML. For example, assume that the largest id in xml is 100. Next, a plain is imported, with a non-existent path: /did/not/exit/plain.txt and that plain has an id of 11. We cannot give /did an id of 11, so for those cases we would need to have some sort of "reverse counter" (for example it starts at Integer.MAX_VALUE and gets decremented with every previously unspecified directory created).

nuno-silva commented 8 years ago