javabean

package com.gongxy.demo;

import java.io.Serializable;

/**
 * javabean
 * Getter and Setter
 * boolean Getter[isDeleted] Setter[setDeleted]
 * 提供一个无参的构造方法
 * 必须可以序列化[java.io.Serializable / java.io.Externalizable]
 */
public class UserDO implements Serializable {
    public UserDO(){

    }

    private int userID;
    private String userName;
    private int age;
    private boolean deleted;

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }


}

 

posted @ 2020-08-06 22:40  gygtech  Views(88)  Comments(0Edit  收藏  举报