GeTuiUserClient.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.yihu.ehr.basic.getui.model;
  2. import org.hibernate.annotations.GenericGenerator;
  3. import javax.persistence.*;
  4. /**
  5. * @author litaohong on 2018/4/20
  6. * @project ehr
  7. * 个推--用户id与客户端clientId的映射关系
  8. */
  9. @Entity
  10. @Table(name = "getui_user_client", schema = "", catalog = "healtharchive")
  11. public class GeTuiUserClient {
  12. private Long id;
  13. private String userId;
  14. private String clientId;
  15. @Id
  16. @GeneratedValue(generator = "Generator")
  17. @GenericGenerator(name = "Generator", strategy = "identity")
  18. @Column(name = "id", nullable = false, insertable = true, updatable = true)
  19. public Long getId() {
  20. return id;
  21. }
  22. public void setId(Long id) {
  23. this.id = id;
  24. }
  25. @Column(name = "user_id", nullable = false, insertable = true, updatable = true)
  26. public String getUserId() {
  27. return userId;
  28. }
  29. public void setUserId(String userId) {
  30. this.userId = userId;
  31. }
  32. @Column(name = "client_id", nullable = false, insertable = true, updatable = true)
  33. public String getClientId() {
  34. return clientId;
  35. }
  36. public void setClientId(String clientId) {
  37. this.clientId = clientId;
  38. }
  39. }