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

📄 mark.java

📁 学生成绩管理系统
💻 JAVA
字号:
/*
 * @(#)Mark.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="Mark" lazy="false"
 */
public class Mark {

    private String id;          //主键
    private Student student;    //学生
    private Course course;      //课程
    private Float score;        //成绩
    
    /**
     * @hibernate.many-to-one column="studentId" class="com.qrsx.course.model.Student" 
     */
    public Student getStudent() {
        return student;
    }
    /**
     * @hibernate.many-to-one column="courseId" class="com.qrsx.course.model.Course" 
     */
    public Course getCourse() {
        return course;
    }
    
    /**
     * @hibernate.id
     *      column="id"
     *      generator-class="uuid.hex"
     */
    public String getId() {
        return id;
    }
    /**
     * @hibernate.property
     *      column="score"
     *      not-null="false"
     */
    public Float getScore() {
        return score;
    }
    /**
     * @param course the course to set
     */
    public void setCourse(Course course) {
        this.course = course;
    }
    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }
    /**
     * @param score the score to set
     */
    public void setScore(Float score) {
        this.score = score;
    }
    /**
     * @param student the student to set
     */
    public void setStudent(Student student) {
        this.student = student;
    }
    
}

⌨️ 快捷键说明

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