PageRenderTime 1632ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/spring-duboo/src/main/java/com/github/dubbo/common/demo/entity/User.java

https://gitlab.com/doctorwho1986/doctor
Java | 55 lines | 37 code | 13 blank | 5 comment | 0 complexity | 6b47f7d0579797f907e707ba8e6f265b MD5 | raw file
  1. package com.github.dubbo.common.demo.entity;
  2. import java.io.Serializable;
  3. import com.alibaba.fastjson.JSON;
  4. /**
  5. * @author doctor
  6. *
  7. * @since 2014年12月21日 上午10:33:21
  8. */
  9. public class User implements Serializable{
  10. private static final long serialVersionUID = -7384946482273816485L;
  11. private String name;
  12. private Integer age;
  13. private String sex;
  14. public User(){}
  15. public User(String name,Integer age,String sex){
  16. this.name = name;
  17. this.age = age;
  18. this.sex = sex;
  19. }
  20. public String getName() {
  21. return name;
  22. }
  23. public void setName(String name) {
  24. this.name = name;
  25. }
  26. public Integer getAge() {
  27. return age;
  28. }
  29. public void setAge(Integer age) {
  30. this.age = age;
  31. }
  32. public String getSex() {
  33. return sex;
  34. }
  35. public void setSex(String sex) {
  36. this.sex = sex;
  37. }
  38. @Override
  39. public String toString() {
  40. return JSON.toJSONString(this);
  41. }
  42. }