📄 human.java
字号:
package test.hibernate;
/**
* @author Administrator
*
* @hibernate.joined-subclass
* table="HUMANS"
* dynamic-update="true"
* @hibernate.joined-subclass-key
* column="ANIMAL_ID"
*/
public class Human extends Animal {
private Name name;
private String occupation;
/**
* Constructor for Human.
*/
public Human() {
super();
}
/**
* @hibernate.component
* Returns the name.
* @return Name
*/
public Name getName() {
return name;
}
/**
* Sets the name.
* @param name The name to set
*/
public void setName(Name name) {
this.name = name;
}
/**
* @hibernate.property
* Returns the occupation.
* @return String
*/
public String getOccupation() {
return occupation;
}
/**
* Sets the occupation.
* @param occupation The occupation to set
*/
public void setOccupation(String occupation) {
this.occupation = occupation;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -