📄 sc.java
字号:
package com.wondersgroup.test.manytomany.bo;
/**
* @author Fan Jibin
* @hibernate.class
* table = "TEST_SC"
* dynamic-update = "true"
*/
public class SC {
private long id;
private Student student;
private Course course;
private int score;
/**
* @hibernate.id
* column = "ID"
* generator-class = "sequence"
* @hibernate.generator-param
* name = "sequence"
* value = "SQE_SC"
* **/
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
/**
* @hibernate.many-to-one
* column = "Course_id"
* class = "com.wondersgroup.test.manytomany.bo.Course"
* inverse = "true"
*
* @return
*/
public Course getCourse() {
return course;
}
public void setCourse(Course course) {
this.course = course;
}
/**
* @hibernate.property
* column = "SCORE"
* @return
*/
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
/**
* @hibernate.many-to-one
* column = "test_STUDENT_ID"
* class = "com.wondersgroup.test.manytomany.bo.Student"
* inverse = "true"
*
* @return
*/
public Student getStudent() {
return student;
}
public void setStudent(Student student) {
this.student = student;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -