DWay.java 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.miniframe.model.system;
  2. import com.miniframe.system.MiniserviceBaseModel;
  3. import java.io.Serializable;
  4. import javax.persistence.*;
  5. @Table(name = "d_way")
  6. public class DWay extends MiniserviceBaseModel implements Serializable {
  7. @Id
  8. private Integer id;
  9. private String name;
  10. private String code;
  11. private static final long serialVersionUID = 1L;
  12. /**
  13. * @return id
  14. */
  15. public Integer getId() {
  16. return id;
  17. }
  18. /**
  19. * @param id
  20. */
  21. public void setId(Integer id) {
  22. this.id = id;
  23. }
  24. /**
  25. * @return name
  26. */
  27. public String getName() {
  28. return name;
  29. }
  30. /**
  31. * @param name
  32. */
  33. public void setName(String name) {
  34. this.name = name == null ? null : name.trim();
  35. }
  36. /**
  37. * @return code
  38. */
  39. public String getCode() {
  40. return code;
  41. }
  42. /**
  43. * @param code
  44. */
  45. public void setCode(String code) {
  46. this.code = code == null ? null : code.trim();
  47. }
  48. }