TjQuotaDataSource.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package com.yihu.quota.model.jpa.source;// default package
  2. import javax.persistence.*;
  3. import static javax.persistence.GenerationType.IDENTITY;
  4. /**
  5. * TjQuotaDataSource entity. @author MyEclipse Persistence Tools
  6. */
  7. @Entity
  8. @Table(name = "tj_quota_data_source")
  9. public class TjQuotaDataSource implements java.io.Serializable {
  10. // Fields
  11. private Integer id;
  12. private String quotaCode;
  13. private String sourceCode;
  14. private String configJson;
  15. private String code;
  16. // Constructors
  17. /** default constructor */
  18. public TjQuotaDataSource() {
  19. }
  20. /** full constructor */
  21. public TjQuotaDataSource(String quotaCode, String sourceCode,
  22. String configJson) {
  23. this.quotaCode = quotaCode;
  24. this.sourceCode = sourceCode;
  25. this.configJson = configJson;
  26. }
  27. // Property accessors
  28. @Id
  29. @GeneratedValue(strategy = IDENTITY)
  30. @Column(name = "id", unique = true, nullable = false)
  31. public Integer getId() {
  32. return this.id;
  33. }
  34. public void setId(Integer id) {
  35. this.id = id;
  36. }
  37. @Column(name = "quota_code", length = 100)
  38. public String getQuotaCode() {
  39. return this.quotaCode;
  40. }
  41. public void setQuotaCode(String quotaCode) {
  42. this.quotaCode = quotaCode;
  43. }
  44. @Column(name = "source_code", length = 100)
  45. public String getSourceCode() {
  46. return this.sourceCode;
  47. }
  48. public void setSourceCode(String sourceCode) {
  49. this.sourceCode = sourceCode;
  50. }
  51. @Column(name = "config_json", length = 2000)
  52. public String getConfigJson() {
  53. return this.configJson;
  54. }
  55. public void setConfigJson(String configJson) {
  56. this.configJson = configJson;
  57. }
  58. @Transient
  59. public String getCode() {
  60. return code;
  61. }
  62. public void setCode(String code) {
  63. this.code = code;
  64. }
  65. }