Package de.aeb.xnsg.customs.dto.common
Class CustomsMaterialDTO
java.lang.Object
de.aeb.xnsg.customs.dto.common.CustomsMaterialDTO
DTO to hold data identifying a material.
-
Field Summary
FieldsModifier and TypeFieldDescription@NotEmpty(groups=InvalidDataError.class) @Size(max=50,groups=InvalidDataError.class) StringA persistent identification code which is used in a foreign system of the customer for identifying a material / good.@Size(max=50,groups=InvalidDataError.class) StringUsed to identify a good / material but - in contrast to 'foreignMaterialId' - the material number is not necessarily persistent and might change occasionally.A persistent identification code used in the 'Material Repository' for identifying a material / good. -
Constructor Summary
ConstructorsConstructorDescriptionCustomsMaterialDTO(String foreignMaterialId) CustomsMaterialDTO(String foreignMaterialId, Long repositoryMaterialId, String materialNumber) -
Method Summary
-
Field Details
-
foreignMaterialId
@NotEmpty(groups=InvalidDataError.class) @Size(max=50, groups=InvalidDataError.class) public @NotEmpty(groups=InvalidDataError.class) @Size(max=50,groups=InvalidDataError.class) String foreignMaterialIdA persistent identification code which is used in a foreign system of the customer for identifying a material / good.
- length=50
- mandatory
- example=M-1000
-
repositoryMaterialId
A persistent identification code used in the 'Material Repository' for identifying a material / good. The field '
repositoryMaterialId' only has to be filled when the 'Material Repository' is used. -
materialNumber
@Size(max=50, groups=InvalidDataError.class) public @Size(max=50,groups=InvalidDataError.class) String materialNumberUsed to identify a good / material but - in contrast to '
foreignMaterialId' - the material number is not necessarily persistent and might change occasionally. The field 'materialNumber' only has to be filled when the 'Material Repository' is used.
-
-
Constructor Details
-
CustomsMaterialDTO
public CustomsMaterialDTO() -
CustomsMaterialDTO
-
CustomsMaterialDTO
-