/spring-duboo/src/main/java/com/github/dubbo/common/demo/entity/User.java
Java | 55 lines | 37 code | 13 blank | 5 comment | 0 complexity | 6b47f7d0579797f907e707ba8e6f265b MD5 | raw file
- package com.github.dubbo.common.demo.entity;
- import java.io.Serializable;
- import com.alibaba.fastjson.JSON;
- /**
- * @author doctor
- *
- * @since 2014年12月21日 上午10:33:21
- */
- public class User implements Serializable{
- private static final long serialVersionUID = -7384946482273816485L;
- private String name;
- private Integer age;
- private String sex;
- public User(){}
- public User(String name,Integer age,String sex){
- this.name = name;
- this.age = age;
- this.sex = sex;
- }
-
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Integer getAge() {
- return age;
- }
- public void setAge(Integer age) {
- this.age = age;
- }
- public String getSex() {
- return sex;
- }
- public void setSex(String sex) {
- this.sex = sex;
- }
- @Override
- public String toString() {
- return JSON.toJSONString(this);
- }
-
- }