Project.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.persagy.dptool.dto.physical;
  2. import com.persagy.dptool.annotation.FieldCheck;
  3. public class Project extends PhysicalWorld{
  4. @FieldCheck(canBeNull = false, uniq = true, length = 10)
  5. private String project_id;
  6. @FieldCheck
  7. private String password;
  8. @FieldCheck(length = 14)
  9. private String ctime;
  10. private String dtime;
  11. @FieldCheck(canBeNull = false)
  12. private Boolean valid;
  13. public String getProject_id() {
  14. return project_id;
  15. }
  16. public void setProject_id(String project_id) {
  17. this.project_id = project_id;
  18. }
  19. public String getPassword() {
  20. return password;
  21. }
  22. public void setPassword(String password) {
  23. this.password = password;
  24. }
  25. public String getCtime() {
  26. return ctime;
  27. }
  28. public void setCtime(String ctime) {
  29. this.ctime = ctime;
  30. }
  31. public String getDtime() {
  32. return dtime;
  33. }
  34. public void setDtime(String dtime) {
  35. this.dtime = dtime;
  36. }
  37. public Boolean getValid() {
  38. return valid;
  39. }
  40. public void setValid(Boolean valid) {
  41. this.valid = valid;
  42. }
  43. @Override
  44. public String toString() {
  45. return "{" +
  46. "project_id='" + project_id + '\'' +
  47. ", password='" + password + '\'' +
  48. ", ctime='" + ctime + '\'' +
  49. ", dtime='" + dtime + '\'' +
  50. ", valid=" + valid +
  51. '}';
  52. }
  53. }