AsycudaCountryConfig.java

package com.tradecloud.domain.export;

import com.tradecloud.common.base.PersistenceBase;
import com.tradecloud.domain.party.base.Address;
import com.tradecloud.domain.place.Country;
import com.tradecloud.domain.place.PlaceOfCustom;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Entity
@Component(value = "AsycudaCountryConfig")
@Table(name = "AsycudaCountryConfig")
@Access(AccessType.FIELD)
public class AsycudaCountryConfig extends PersistenceBase {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    @NotNull
    @ManyToOne
    private Country country;

    @NotNull
    @Enumerated(value = EnumType.STRING)
    private AsycudaVersion asycudaVersion;
    @Size(max = 255, message = "Custom Office code cannot be longer than 255 characters")
    private String customsOfficeCode;
    @Size(max = 255, message = "Custom Office name cannot be longer than 255 characters")
    private String customsOfficeName;
    @Size(max = 255, message = "Custom Declarat code cannot be longer than 255 characters")
    private String customsDeclarantCode;
    @Size(max = 255, message = "National Procedure code cannot be longer than 255 characters")
    private String nationalProcedureCode;
    @Size(max = 255, message = "Deferred Payment account cannot be longer than 255 characters")
    private String deferredPaymentAccount;
    @Size(max = 255, message = "Export Country name cannot be longer than 255 characters")
    private String exportCountryName;
    @Size(max = 255, message = "Kind of packages name cannot be longer than 255 characters")
    private String kindOfPackagesName;
    @Size(max = 255, message = "Location of goods cannot be longer than 255 characters")
    private String locationOfGoods;
    @Size(max = 255, message = "Preference code cannot be longer than 255 characters")
    private String preferenceCode;

    private boolean displayPreviousDocumentReference;

    @NotNull
    @ManyToOne
    private PlaceOfCustom placeOfCustomExit;

    @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
    private Address address;

    private String tinCarrierCode;

    private String tradingAsName;

    public Country getCountry() {
        return country;
    }

    public void setCountry(Country country) {
        this.country = country;
    }

    public AsycudaVersion getAsycudaVersion() {
        return asycudaVersion;
    }

    public void setAsycudaVersion(AsycudaVersion asycudaVersion) {
        this.asycudaVersion = asycudaVersion;
    }

    public String getCustomsOfficeCode() {
        return customsOfficeCode;
    }

    public void setCustomsOfficeCode(String customsOfficeCode) {
        this.customsOfficeCode = customsOfficeCode;
    }

    public String getCustomsDeclarantCode() {
        return customsDeclarantCode;
    }

    public void setCustomsDeclarantCode(String customsDeclarantCode) {
        this.customsDeclarantCode = customsDeclarantCode;
    }

    public String getNationalProcedureCode() {
        return nationalProcedureCode;
    }

    public void setNationalProcedureCode(String nationalProcedureCode) {
        this.nationalProcedureCode = nationalProcedureCode;
    }

    public String getDeferredPaymentAccount() {
        return deferredPaymentAccount;
    }

    public void setDeferredPaymentAccount(String deferredPaymentAccount) {
        this.deferredPaymentAccount = deferredPaymentAccount;
    }

    public String getCustomsOfficeName() {
        return customsOfficeName;
    }

    public void setCustomsOfficeName(String customsOfficeName) {
        this.customsOfficeName = customsOfficeName;
    }

    public PlaceOfCustom getPlaceOfCustomExit() {
        return placeOfCustomExit;
    }

    public void setPlaceOfCustomExit(PlaceOfCustom placeOfCustomExit) {
        this.placeOfCustomExit = placeOfCustomExit;
    }

    public String getExportCountryName() {
        return exportCountryName;
    }

    public void setExportCountryName(String exportCountryName) {
        this.exportCountryName = exportCountryName;
    }

    public String getKindOfPackagesName() {
        return kindOfPackagesName;
    }

    public void setKindOfPackagesName(String kindOfPackagesName) {
        this.kindOfPackagesName = kindOfPackagesName;
    }

    public String getLocationOfGoods() {
        return locationOfGoods;
    }

    public void setLocationOfGoods(String locationOfGoods) {
        this.locationOfGoods = locationOfGoods;
    }

    public String getPreferenceCode() {
        return preferenceCode;
    }

    public void setPreferenceCode(String preferenceCode) {
        this.preferenceCode = preferenceCode;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getTinCarrierCode() {
        return tinCarrierCode;
    }

    public void setTinCarrierCode(String tinCarrierCode) {
        this.tinCarrierCode = tinCarrierCode;
    }

    public String getTradingAsName() {
        return tradingAsName;
    }

    public void setTradingAsName(String tradingAsName) {
        this.tradingAsName = tradingAsName;
    }

    public boolean isDisplayPreviousDocumentReference() {
        return displayPreviousDocumentReference;
    }

    public void setDisplayPreviousDocumentReference(boolean displayPreviousDocumentReference) {
        this.displayPreviousDocumentReference = displayPreviousDocumentReference;
    }
}