ru.abyss.settings.importer.ImporterV16 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.6")
public class ImporterV16 extends ImporterV17 {
@Override
protected String getDestFieldMapper(ImportTable table, String field) {
// в версии 1.7 в таблице stock.tproperties поле ear переименовалось в weight
if ("STOCK.TPROPERTIES".equalsIgnoreCase(table.toString()) && "ear".equalsIgnoreCase(field))
field = "weight";
return super.getDestFieldMapper(table, field);
}
}