spring-config.jobs.mapping.productInstanceMapping.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <mappingFile> <command name="ADD_PRODUCT_INSTANCE" targetEntity="io.github.jsoagger.core.model.shop.ProductInstance" writers-ref="LineBeanToProductInstanceWriter" processors-ref="VLCSVToBeanProcessor" dependent-commands="" dependent-commands-processor=""> <column id="command" mandatory="true" maxLength="255" /> <column id="number" mandatory="false" maxLength="255" /> <column id="serialLotNumber" mandatory="false"/> <column id="internalName" mandatory="true" maxLength="255" /> <column id="commercialName" mandatory="false" maxLength="255" /> <column id="introductionDate" mandatory="false" propertyEditor="DateStringPropertyEditor" /> <column id="discontinuationDate" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="supportDiscontinuationDate" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="localDescription" mandatory="false" maxLength="255"/> <column id="commercialDescription" mandatory="false" maxLength="255"/> <column id="owner" mandatory="true" propertyEditor="OwnerByReferencePropertyEditor" externalAttribute="true"/> <column id="ownerReference" mandatory="true" externalAttribute="true"/> <column id="typeInfo" mandatory="true" propertyEditor="TypeInfoByLogicalPathEditor" /> <column id="containerInfo" mandatory="true" propertyEditor="ContainerInfoByLogicalPathEditor"/> </command> <!-- SET CATEGORY, REMOVES OTHERS CATEGORIES OF THIS PRODUCT, SET TO THIS ONE --> <command name="SET_PRODUCT_INSTANCE_CATEGORY" targetEntity="io.github.jsoagger.core.model.shop.ProductInstanceCategoryClassification" writers-ref="LineBeanToProductInstanceWriter" processors-ref="VLCSVToBeanProcessor"> <column id="command" mandatory="true" maxLength="255" /> <column id="roleA" mandatory="true" propertyEditor="ProductInstanceByNumberEditor"/> <column id="roleB" mandatory="true" propertyEditor="ObjectCategoryByNumberEditor"/> <column id="fromDate" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="thruDate" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="primaryFlag" mandatory="false" propertyEditor="BooleanStringPropertyEditor"/> <column id="comment" mandatory="false" maxLength="255"/> </command> <!-- ADD THIS ONE IF NOT PRESENT --> <command name="ADD_PRODUCT_INSTANCE_CATEGORY" targetEntity="io.github.jsoagger.core.model.shop.ProductInstanceCategoryClassification" writers-ref="LineBeanToProductInstanceWriter" processors-ref="VLCSVToBeanProcessor"> <column id="command" mandatory="true" maxLength="255" /> <column id="roleA" mandatory="true" propertyEditor="ProductInstanceByNumberEditor"/> <column id="roleB" mandatory="true" propertyEditor="ObjectCategoryByNumberEditor"/> <column id="fromDate" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="thruDate" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="primaryFlag" mandatory="false" propertyEditor="BooleanStringPropertyEditor"/> <column id="comment" mandatory="false" maxLength="255"/> </command> <!-- EXPORT/UPDATE --> <command name="UPDATE_PRODUCT_INSTANCE" targetEntity="io.github.jsoagger.core.model.shop.ProductInstance"> <column id="command" /> <column id="fullIdentifier" propertyEditor="ObjectFullIdentifierPropetyEditor"/> <column id="serial_lot_number" mandatory="false"/> <column id="name" mandatory="true"/> <column id="commercial_name" mandatory="false" maxLength="255" /> <column id="introduction_date" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="discontinuation_date" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="support_discontinuation_date" mandatory="false" propertyEditor="DateStringPropertyEditor"/> <column id="local_desc" mandatory="false" maxLength="255"/> <column id="commercial_desc" mandatory="false" maxLength="255"/> </command> <command name="EXPORT_UPDATE_PRODUCT_INSTANCE_FOR_UPDATE" targetEntity="io.github.jsoagger.core.model.shop.ProductInstance"> <column id="command" constant="UPDATE_PRODUCT_INSTANCE"/> <column id="fullIdentifier" propertyEditor="ObjectFullIdentifierPropetyEditor"/> <column id="serial_lot_number" /> <column id="name" /> <column id="commercial_name"/> <column id="introduction_date" /> <column id="discontinuation_date"/> <column id="support_discontinuation_date" /> <column id="local_desc" /> <column id="commercial_desc" /> </command> <!-- EXPORT PRODUCT INSTANCE WITH ITS THUMBNAIL --> <command name="EXPORT_UPDATE_PRODUCT_INSTANCE_FOR_UPDATE" targetEntity="io.github.jsoagger.core.model.shop.ProductInstance"> <column id="command" constant="LOAD_GENERIC_THUMBED_ILLUSTRATION"/> <column id="fullIdentifier" propertyEditor="ObjectFullIdentifierPropetyEditor"/> <column id="thumb" propertyEditor="ThumbToFilePropertyEditor" externalAttribute="true" /> <column id="name" /> </command> </mappingFile>