| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- package com.goafanti.demand.bo;
- import java.math.BigDecimal;
- import java.util.Date;
- import javax.validation.constraints.Max;
- import javax.validation.constraints.Min;
- import javax.validation.constraints.Size;
- import com.goafanti.common.constant.ErrorConstants;
- public class InputDemand {
-
- @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String id;
-
- @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer dataCategory;
-
- @Size(min = 0, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String name;
-
- @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String keyword;
-
- @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer infoSources;
-
- @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer industryCategoryA;
-
- @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer industryCategoryB;
-
- @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer industryCategoryC;
-
- @Max(value = 9, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer demandType;
-
- @Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String problemDes;
-
- @Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String technicalRequirements;
-
- @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String pictureUrl;
-
- @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String textFileUrl;
-
- @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String videoUrl;
-
- @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private BigDecimal fixedBudget;
-
- @Size(min = 0, max = 12, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String fixedCycle;
-
- @Max(value = 99999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer peopleNumber;
-
- @Size(min = 0, max = 200, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String fixedScheme;
-
- @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private BigDecimal costEscrow;
-
- @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private BigDecimal budgetCost;
- private Date validityPeriod;
-
- @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String employerId;
-
- @Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String employerName;
-
- @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String employerAddress;
-
- @Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String employerContacts;
-
- @Size(min = 0, max = 11, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String employerContactsMobile;
-
- @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String employerContactsMailbox;
-
- @Max(value = 3, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer contacts;
-
- @Max(value = 2, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer status;
-
- @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
- private Integer releaseStatus;
- private Date releaseDate;
- @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
- private String principalId;
- public String getId() {
- return id;
- }
- public void setId(String id) {
- this.id = id;
- }
- public Integer getDataCategory() {
- return dataCategory;
- }
- public void setDataCategory(Integer dataCategory) {
- this.dataCategory = dataCategory;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getKeyword() {
- return keyword;
- }
- public void setKeyword(String keyword) {
- this.keyword = keyword;
- }
- public Integer getInfoSources() {
- return infoSources;
- }
- public void setInfoSources(Integer infoSources) {
- this.infoSources = infoSources;
- }
- public Integer getIndustryCategoryA() {
- return industryCategoryA;
- }
- public void setIndustryCategoryA(Integer industryCategoryA) {
- this.industryCategoryA = industryCategoryA;
- }
- public Integer getIndustryCategoryB() {
- return industryCategoryB;
- }
- public void setIndustryCategoryB(Integer industryCategoryB) {
- this.industryCategoryB = industryCategoryB;
- }
- public Integer getIndustryCategoryC() {
- return industryCategoryC;
- }
- public void setIndustryCategoryC(Integer industryCategoryC) {
- this.industryCategoryC = industryCategoryC;
- }
- public Integer getDemandType() {
- return demandType;
- }
- public void setDemandType(Integer demandType) {
- this.demandType = demandType;
- }
- public String getProblemDes() {
- return problemDes;
- }
- public void setProblemDes(String problemDes) {
- this.problemDes = problemDes;
- }
- public String getTechnicalRequirements() {
- return technicalRequirements;
- }
- public void setTechnicalRequirements(String technicalRequirements) {
- this.technicalRequirements = technicalRequirements;
- }
- public String getPictureUrl() {
- return pictureUrl;
- }
- public void setPictureUrl(String pictureUrl) {
- this.pictureUrl = pictureUrl;
- }
- public String getTextFileUrl() {
- return textFileUrl;
- }
- public void setTextFileUrl(String textFileUrl) {
- this.textFileUrl = textFileUrl;
- }
- public String getVideoUrl() {
- return videoUrl;
- }
- public void setVideoUrl(String videoUrl) {
- this.videoUrl = videoUrl;
- }
- public BigDecimal getFixedBudget() {
- return fixedBudget;
- }
- public void setFixedBudget(BigDecimal fixedBudget) {
- this.fixedBudget = fixedBudget;
- }
- public String getFixedCycle() {
- return fixedCycle;
- }
- public void setFixedCycle(String fixedCycle) {
- this.fixedCycle = fixedCycle;
- }
- public Integer getPeopleNumber() {
- return peopleNumber;
- }
- public void setPeopleNumber(Integer peopleNumber) {
- this.peopleNumber = peopleNumber;
- }
- public String getFixedScheme() {
- return fixedScheme;
- }
- public void setFixedScheme(String fixedScheme) {
- this.fixedScheme = fixedScheme;
- }
- public BigDecimal getCostEscrow() {
- return costEscrow;
- }
- public void setCostEscrow(BigDecimal costEscrow) {
- this.costEscrow = costEscrow;
- }
- public BigDecimal getBudgetCost() {
- return budgetCost;
- }
- public void setBudgetCost(BigDecimal budgetCost) {
- this.budgetCost = budgetCost;
- }
- public Date getValidityPeriod() {
- return validityPeriod;
- }
- public void setValidityPeriod(Date validityPeriod) {
- this.validityPeriod = validityPeriod;
- }
- public String getEmployerId() {
- return employerId;
- }
- public void setEmployerId(String employerId) {
- this.employerId = employerId;
- }
- public String getEmployerName() {
- return employerName;
- }
- public void setEmployerName(String employerName) {
- this.employerName = employerName;
- }
- public String getEmployerAddress() {
- return employerAddress;
- }
- public void setEmployerAddress(String employerAddress) {
- this.employerAddress = employerAddress;
- }
- public String getEmployerContacts() {
- return employerContacts;
- }
- public void setEmployerContacts(String employerContacts) {
- this.employerContacts = employerContacts;
- }
- public String getEmployerContactsMobile() {
- return employerContactsMobile;
- }
- public void setEmployerContactsMobile(String employerContactsMobile) {
- this.employerContactsMobile = employerContactsMobile;
- }
- public String getEmployerContactsMailbox() {
- return employerContactsMailbox;
- }
- public void setEmployerContactsMailbox(String employerContactsMailbox) {
- this.employerContactsMailbox = employerContactsMailbox;
- }
- public Integer getContacts() {
- return contacts;
- }
- public void setContacts(Integer contacts) {
- this.contacts = contacts;
- }
- public Integer getStatus() {
- return status;
- }
- public void setStatus(Integer status) {
- this.status = status;
- }
- public Integer getReleaseStatus() {
- return releaseStatus;
- }
- public void setReleaseStatus(Integer releaseStatus) {
- this.releaseStatus = releaseStatus;
- }
- public Date getReleaseDate() {
- return releaseDate;
- }
- public void setReleaseDate(Date releaseDate) {
- this.releaseDate = releaseDate;
- }
- public String getPrincipalId() {
- return principalId;
- }
- public void setPrincipalId(String principalId) {
- this.principalId = principalId;
- }
-
-
- }
|