InputDemand.java 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. package com.goafanti.demand.bo;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import javax.validation.constraints.Max;
  5. import javax.validation.constraints.Min;
  6. import javax.validation.constraints.Size;
  7. import com.goafanti.common.constant.ErrorConstants;
  8. public class InputDemand {
  9. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  10. private String id;
  11. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  12. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  13. private Integer dataCategory;
  14. @Size(min = 0, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  15. private String name;
  16. @Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  17. private String keyword;
  18. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  19. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  20. private Integer infoSources;
  21. @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  22. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  23. private Integer industryCategoryA;
  24. @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  25. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  26. private Integer industryCategoryB;
  27. @Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  28. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  29. private Integer industryCategoryC;
  30. @Max(value = 9, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  31. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  32. private Integer demandType;
  33. @Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  34. private String problemDes;
  35. @Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  36. private String technicalRequirements;
  37. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  38. private String pictureUrl;
  39. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  40. private String textFileUrl;
  41. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  42. private String videoUrl;
  43. @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  44. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  45. private BigDecimal fixedBudget;
  46. @Size(min = 0, max = 12, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  47. private String fixedCycle;
  48. @Max(value = 99999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  49. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  50. private Integer peopleNumber;
  51. @Size(min = 0, max = 200, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  52. private String fixedScheme;
  53. @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  54. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  55. private BigDecimal costEscrow;
  56. @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  57. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  58. private BigDecimal budgetCost;
  59. private Date validityPeriod;
  60. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  61. private String employerId;
  62. @Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  63. private String employerName;
  64. @Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  65. private String employerAddress;
  66. @Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  67. private String employerContacts;
  68. @Size(min = 0, max = 11, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  69. private String employerContactsMobile;
  70. @Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  71. private String employerContactsMailbox;
  72. @Max(value = 3, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  73. @Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  74. private Integer contacts;
  75. @Max(value = 2, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  76. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  77. private Integer status;
  78. @Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  79. @Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
  80. private Integer releaseStatus;
  81. private Date releaseDate;
  82. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  83. private String principalId;
  84. public String getId() {
  85. return id;
  86. }
  87. public void setId(String id) {
  88. this.id = id;
  89. }
  90. public Integer getDataCategory() {
  91. return dataCategory;
  92. }
  93. public void setDataCategory(Integer dataCategory) {
  94. this.dataCategory = dataCategory;
  95. }
  96. public String getName() {
  97. return name;
  98. }
  99. public void setName(String name) {
  100. this.name = name;
  101. }
  102. public String getKeyword() {
  103. return keyword;
  104. }
  105. public void setKeyword(String keyword) {
  106. this.keyword = keyword;
  107. }
  108. public Integer getInfoSources() {
  109. return infoSources;
  110. }
  111. public void setInfoSources(Integer infoSources) {
  112. this.infoSources = infoSources;
  113. }
  114. public Integer getIndustryCategoryA() {
  115. return industryCategoryA;
  116. }
  117. public void setIndustryCategoryA(Integer industryCategoryA) {
  118. this.industryCategoryA = industryCategoryA;
  119. }
  120. public Integer getIndustryCategoryB() {
  121. return industryCategoryB;
  122. }
  123. public void setIndustryCategoryB(Integer industryCategoryB) {
  124. this.industryCategoryB = industryCategoryB;
  125. }
  126. public Integer getIndustryCategoryC() {
  127. return industryCategoryC;
  128. }
  129. public void setIndustryCategoryC(Integer industryCategoryC) {
  130. this.industryCategoryC = industryCategoryC;
  131. }
  132. public Integer getDemandType() {
  133. return demandType;
  134. }
  135. public void setDemandType(Integer demandType) {
  136. this.demandType = demandType;
  137. }
  138. public String getProblemDes() {
  139. return problemDes;
  140. }
  141. public void setProblemDes(String problemDes) {
  142. this.problemDes = problemDes;
  143. }
  144. public String getTechnicalRequirements() {
  145. return technicalRequirements;
  146. }
  147. public void setTechnicalRequirements(String technicalRequirements) {
  148. this.technicalRequirements = technicalRequirements;
  149. }
  150. public String getPictureUrl() {
  151. return pictureUrl;
  152. }
  153. public void setPictureUrl(String pictureUrl) {
  154. this.pictureUrl = pictureUrl;
  155. }
  156. public String getTextFileUrl() {
  157. return textFileUrl;
  158. }
  159. public void setTextFileUrl(String textFileUrl) {
  160. this.textFileUrl = textFileUrl;
  161. }
  162. public String getVideoUrl() {
  163. return videoUrl;
  164. }
  165. public void setVideoUrl(String videoUrl) {
  166. this.videoUrl = videoUrl;
  167. }
  168. public BigDecimal getFixedBudget() {
  169. return fixedBudget;
  170. }
  171. public void setFixedBudget(BigDecimal fixedBudget) {
  172. this.fixedBudget = fixedBudget;
  173. }
  174. public String getFixedCycle() {
  175. return fixedCycle;
  176. }
  177. public void setFixedCycle(String fixedCycle) {
  178. this.fixedCycle = fixedCycle;
  179. }
  180. public Integer getPeopleNumber() {
  181. return peopleNumber;
  182. }
  183. public void setPeopleNumber(Integer peopleNumber) {
  184. this.peopleNumber = peopleNumber;
  185. }
  186. public String getFixedScheme() {
  187. return fixedScheme;
  188. }
  189. public void setFixedScheme(String fixedScheme) {
  190. this.fixedScheme = fixedScheme;
  191. }
  192. public BigDecimal getCostEscrow() {
  193. return costEscrow;
  194. }
  195. public void setCostEscrow(BigDecimal costEscrow) {
  196. this.costEscrow = costEscrow;
  197. }
  198. public BigDecimal getBudgetCost() {
  199. return budgetCost;
  200. }
  201. public void setBudgetCost(BigDecimal budgetCost) {
  202. this.budgetCost = budgetCost;
  203. }
  204. public Date getValidityPeriod() {
  205. return validityPeriod;
  206. }
  207. public void setValidityPeriod(Date validityPeriod) {
  208. this.validityPeriod = validityPeriod;
  209. }
  210. public String getEmployerId() {
  211. return employerId;
  212. }
  213. public void setEmployerId(String employerId) {
  214. this.employerId = employerId;
  215. }
  216. public String getEmployerName() {
  217. return employerName;
  218. }
  219. public void setEmployerName(String employerName) {
  220. this.employerName = employerName;
  221. }
  222. public String getEmployerAddress() {
  223. return employerAddress;
  224. }
  225. public void setEmployerAddress(String employerAddress) {
  226. this.employerAddress = employerAddress;
  227. }
  228. public String getEmployerContacts() {
  229. return employerContacts;
  230. }
  231. public void setEmployerContacts(String employerContacts) {
  232. this.employerContacts = employerContacts;
  233. }
  234. public String getEmployerContactsMobile() {
  235. return employerContactsMobile;
  236. }
  237. public void setEmployerContactsMobile(String employerContactsMobile) {
  238. this.employerContactsMobile = employerContactsMobile;
  239. }
  240. public String getEmployerContactsMailbox() {
  241. return employerContactsMailbox;
  242. }
  243. public void setEmployerContactsMailbox(String employerContactsMailbox) {
  244. this.employerContactsMailbox = employerContactsMailbox;
  245. }
  246. public Integer getContacts() {
  247. return contacts;
  248. }
  249. public void setContacts(Integer contacts) {
  250. this.contacts = contacts;
  251. }
  252. public Integer getStatus() {
  253. return status;
  254. }
  255. public void setStatus(Integer status) {
  256. this.status = status;
  257. }
  258. public Integer getReleaseStatus() {
  259. return releaseStatus;
  260. }
  261. public void setReleaseStatus(Integer releaseStatus) {
  262. this.releaseStatus = releaseStatus;
  263. }
  264. public Date getReleaseDate() {
  265. return releaseDate;
  266. }
  267. public void setReleaseDate(Date releaseDate) {
  268. this.releaseDate = releaseDate;
  269. }
  270. public String getPrincipalId() {
  271. return principalId;
  272. }
  273. public void setPrincipalId(String principalId) {
  274. this.principalId = principalId;
  275. }
  276. }