FileAttachmentBind.java 2.15 KB
package com.xiniunet.task.domain;

import com.xiniunet.framework.base.BaseBO;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by 范智凝 on 2014-08-1 16:10:30.
 * @author 范智凝
 */
public class FileAttachmentBind extends BaseBO {

    /**
     * 文件名称,
     */
    private  String   name;

    /**
     * 文件后缀,
     */
    private  String   extension;

    /**
     * 文件大小(字节),
     */
    private  Long   size;

    /**
     * 存放路径,
     */
    private  String   storagePath;

    /**
     * 来源类型
     */
    private String sourceType;

    /**
     * 文件类型
     */
    private String type;


    /**
     * 业务类型
     */
    @NotNull(message = "业务类型不能为空")
    @Length(min=1,max=100)
    private String businessType;

    /**
     * 业务ID
     */
    @NotNull(message = "业务ID不能为空")
    private Long businessId;

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getStoragePath() {
        return storagePath;
    }

    public void setStoragePath(String storagePath) {
        this.storagePath = storagePath;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}