student.java

来自「一个简单的登陆系统」· Java 代码 · 共 80 行

JAVA
80
字号
package com.niit.model;

/**
 * Student entity. @author MyEclipse Persistence Tools
 */

public class Student implements java.io.Serializable
{

	// Fields

	private Integer sid;
	private String sname;
	private String city;
	private Integer age;

	// Constructors

	/** default constructor */
	public Student()
	{
	}

	/** minimal constructor */
	public Student(String sname)
	{
		this.sname = sname;
	}

	/** full constructor */
	public Student(String sname, String city, Integer age)
	{
		this.sname = sname;
		this.city = city;
		this.age = age;
	}

	// Property accessors

	public Integer getSid()
	{
		return this.sid;
	}

	public void setSid(Integer sid)
	{
		this.sid = sid;
	}

	public String getSname()
	{
		return this.sname;
	}

	public void setSname(String sname)
	{
		this.sname = sname;
	}

	public String getCity()
	{
		return this.city;
	}

	public void setCity(String city)
	{
		this.city = city;
	}

	public Integer getAge()
	{
		return this.age;
	}

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

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?