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

📄 human.java

📁 XDoclet 使自动生成部署描述符更为便利。XDoclet 是一个代码生成实用程序
💻 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 + -