📄 student.java
字号:
package model;
import java.sql.Blob;
import java.sql.Clob;
public class Student {
private String id;
private String name;
private Integer age;
private Blob photo;
private Clob describe;
// 必须要有一个预设的构造方法
// 以使得Hibernate可以使用Constructor.newInstance()建立对象
public Student() {
}
/**
* @return 返回 age。
*/
public Integer getAge() {
return age;
}
/**
* @param age 要设置的 age。
*/
public void setAge(Integer age) {
this.age = age;
}
/**
* @return 返回 describe。
*/
public Clob getDescribe() {
return describe;
}
/**
* @param describe 要设置的 describe。
*/
public void setDescribe(Clob describe) {
this.describe = describe;
}
/**
* @return 返回 id。
*/
public String getId() {
return id;
}
/**
* @param id 要设置的 id。
*/
public void setId(String id) {
this.id = id;
}
/**
* @return 返回 name。
*/
public String getName() {
return name;
}
/**
* @param name 要设置的 name。
*/
public void setName(String name) {
this.name = name;
}
/**
* @return 返回 photo。
*/
public Blob getPhoto() {
return photo;
}
/**
* @param photo 要设置的 photo。
*/
public void setPhoto(Blob photo) {
this.photo = photo;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -