Class CustomsMaterialDTO

java.lang.Object
de.aeb.xnsg.customs.dto.common.CustomsMaterialDTO

public class CustomsMaterialDTO extends Object
DTO to hold data identifying a material.
  • 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 foreignMaterialId

      A 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

      public Long 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 materialNumber

      Used 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

      public CustomsMaterialDTO(String foreignMaterialId)
    • CustomsMaterialDTO

      public CustomsMaterialDTO(String foreignMaterialId, Long repositoryMaterialId, String materialNumber)