zoukankan      html  css  js  c++  java
  • 学生管理系统----学生封装类

    Student.java:


    /**
     * @Title:Student.java
     * @Package:com.you.student.system.model
     * @Description:学生信息封装类
     * @author:Youhaidong(游海东)
     * @date:2014-6-16 下午11:00:22
     * @version V1.0
     */
    package com.you.student.system.model;
    
    import java.io.Serializable;
    import java.util.Date;
    
    /**
     * 类功能说明
     * 类修改者 修改日期
     * 修改说明
     * <p>Title:Student.java</p>
     * <p>Description:游海东个人开发</p>
     * <p>Copyright:Copyright(c)2013</p>
     * @author:游海东
     * @date:2014-6-16 下午11:00:22
     * @version V1.0
     */
    public class Student implements Serializable 
    {
    	/**
    	 * @Fields  serialVersionUID:序列化
    	 */
    	private static final long serialVersionUID = 1L;
    	
    	/**
    	 * 学号
    	 */
    	private String stuNo;
    	
    	/**
    	 * 姓名
    	 */
    	private String stuName;
    	
    	/**
    	 * 性别
    	 */
    	private String stuSex;
    	
    	/**
    	 * 出生日期
    	 */
    	private Date birthday;
    	
    	/**
    	 * 专业
    	 */
    	private String professional;
    	
    	/**
    	 * 总学分
    	 */
    	private double score;
    	
    	/**
    	 * 备注
    	 */
    	private String remarks;
    	
    	/**
    	 * 照片
    	 */
    	private byte[] photo;
    
    	/**
    	 * <p>Title:</p>
    	 * <p>Description:无参构造函数</p>
    	 */
    	public Student() 
    	{
    		super();
    	}
    
    	/**
    	 * <p>Title:</p>
    	 * <p>Description:</p>
    	 * @param stuNo
    	 * @param stuName
    	 * @param stuSex
    	 * @param birthday
    	 * @param professional
    	 * @param score
    	 * @param remarks
    	 * @param photo
    	 */
    	public Student(String stuNo, String stuName, String stuSex, Date birthday,
    			String professional, double score, String remarks, byte[] photo) 
    	{
    		super();
    		this.stuNo = stuNo;
    		this.stuName = stuName;
    		this.stuSex = stuSex;
    		this.birthday = birthday;
    		this.professional = professional;
    		this.score = score;
    		this.remarks = remarks;
    		this.photo = photo;
    	}
    
    	/**
    	 * @return the stuNo
    	 */
    	public String getStuNo() 
    	{
    		return stuNo;
    	}
    
    	/**
    	 * @param stuNo the stuNo to set
    	 */
    	public void setStuNo(String stuNo) 
    	{
    		this.stuNo = stuNo;
    	}
    
    	/**
    	 * @return the stuName
    	 */
    	public String getStuName() 
    	{
    		return stuName;
    	}
    
    	/**
    	 * @param stuName the stuName to set
    	 */
    	public void setStuName(String stuName) 
    	{
    		this.stuName = stuName;
    	}
    
    	/**
    	 * @return the stuSex
    	 */
    	public String getStuSex() 
    	{
    		return stuSex;
    	}
    
    	/**
    	 * @param stuSex the stuSex to set
    	 */
    	public void setStuSex(String stuSex) 
    	{
    		this.stuSex = stuSex;
    	}
    
    	/**
    	 * @return the birthday
    	 */
    	public Date getBirthday() 
    	{
    		return birthday;
    	}
    
    	/**
    	 * @param birthday the birthday to set
    	 */
    	public void setBirthday(Date birthday) 
    	{
    		this.birthday = birthday;
    	}
    
    	/**
    	 * @return the professional
    	 */
    	public String getProfessional() 
    	{
    		return professional;
    	}
    
    	/**
    	 * @param professional the professional to set
    	 */
    	public void setProfessional(String professional) 
    	{
    		this.professional = professional;
    	}
    
    	/**
    	 * @return the score
    	 */
    	public double getScore() 
    	{
    		return score;
    	}
    
    	/**
    	 * @param score the score to set
    	 */
    	public void setScore(double score) 
    	{
    		this.score = score;
    	}
    
    	/**
    	 * @return the remarks
    	 */
    	public String getRemarks() 
    	{
    		return remarks;
    	}
    
    	/**
    	 * @param remarks the remarks to set
    	 */
    	public void setRemarks(String remarks) 
    	{
    		this.remarks = remarks;
    	}
    
    	/**
    	 * @return the photo
    	 */
    	public byte[] getPhoto() 
    	{
    		return photo;
    	}
    
    	/**
    	 * @param photo the photo to set
    	 */
    	public void setPhoto(byte[] photo) 
    	{
    		this.photo = photo;
    	}
    	
    }
    


  • 相关阅读:
    servlet中doGet()和doPost()的用法
    mybatis动态SQL中的sql片段
    动态SQL语句
    Mybaits的中的对象映射(包含仅有基本数据类型的属性的和对象类型的属性的)
    <img src = "..."/>的一个图片上面怎么在放上字
    启动tomcat时出现The specified JRE installation does not exist 如何解决?
    Navicat图形更改表结构的时,设置外键时出现1452错误
    数据库主键和外键
    数据库设计的过程中的设置外键的作用
    Hibernate 事务管理
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13315018.html
Copyright © 2011-2022 走看看