package com.mstf.bean; public class Info { //------封装数据库中对应的表字段属性, private int id; private String name; private int age; private String address; //-----为属性提供getter和setter方法 public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } }