⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.java

📁 学生成绩管理系统
💻 JAVA
字号:
/*
 * @(#)User.java Sep 8, 2007
 * Copyright 2007 qrsx organization, Inc. All rights reserved
 */
package com.qrsx.course.model;

/**
 * 用户实体对象
 * Author  : 王希涛<br>
 * Company : 青软实训<br>
 * Version : 1.0<br>
 * Date    : Sep 8, 2007<br>
 * 
 * @hibernate.class table="User" lazy="false"
 */
public class User {

	private String id;			//主键
	private String name;		//登陆名
	private String password;    //密码
	
	private Teacher teacher;   //级联的教师 
	
    

	/**
     * @hibernate.id
     *      column="id"
     *      generator-class="uuid.hex"
     */
    public String getId() {
        return id;
    }
    /**
     * @hibernate.property
     *      column="name"
     *      not-null="true"
     */
    public String getName() {
        return name;
    }
    /**
     * @hibernate.property
     *      column="getPassword"
     *      not-null="true"
     */
    public String getPassword() {
        return password;
    }
    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }
    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}


   
}

⌨️ 快捷键说明

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