ru.abyss.settings.importer.ImporterV11 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of abyss-export Show documentation
Show all versions of abyss-export Show documentation
DB import/export library for Abyss ACS
/*
* Copyright Бездна (c) 2018.
*/
package ru.abyss.settings.importer;
/**
* @author Minu <[email protected]>
* @since 29.06.2018 21:52:26
*/
@ImporterVersion("1.1")
public class ImporterV11 extends ImporterV12 {
@Override
protected String getDestFieldMapper(ImportTable table, String field) {
// в версии 1.2 в таблице logistics.tplatforms поле length переименовалось в height
if ("LOGISTICS.TPLATFORMS".equalsIgnoreCase(table.toString()) && "length".equalsIgnoreCase(field))
field = "height";
return super.getDestFieldMapper(table, field);
}
}