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

📄 course.java

📁 使用hibernate
💻 JAVA
字号:
package com.hibernate.bean;

import java.util.HashSet;
import java.util.Set;


/**
 * Course generated by MyEclipse - Hibernate Tools
 */

public class Course  implements java.io.Serializable {


    // Fields    

     private Long cno;
     private String cname;
     private String cdept;
     
     private Set studies = new HashSet(0);    


    // Constructors

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

	/** minimal constructor */
    public Course(Long cno) {
        this.cno = cno;
    }
    
    /** full constructor */
    public Course(Long cno, String cname, String cdept, Set studies) {
        this.cno = cno;
        this.cname = cname;
        this.cdept = cdept;
        this.studies = studies;
    }

   
    // Property accessors

    public Long getCno() {
        return this.cno;
    }
    
    public void setCno(Long cno) {
        this.cno = cno;
    }

    public String getCname() {
        return this.cname;
    }
    
    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCdept() {
        return this.cdept;
    }
    
    public void setCdept(String cdept) {
        this.cdept = cdept;
    }

    public Set getStudies() {
        return this.studies;
    }
    
    public void setStudies(Set studies) {
        this.studies = studies;
    }
   








}

⌨️ 快捷键说明

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