student.java
来自「Hibernate开发及整合应用大全 蔡雪焘编著 本书用典型的示例剖析Hiber」· Java 代码 · 共 78 行
JAVA
78 行
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 + =
减小字号Ctrl + -
显示快捷键?