thing.java

来自「介绍了hibernate的入门有一些基本常用的事例」· Java 代码 · 共 48 行

JAVA
48
字号
//$Id: Thing.java,v 1.1 2004/08/22 13:38:16 oneovthafew Exp $
package org.hibernate.test.unionsubclass;

/**
 * @author Gavin King
 */
public class Thing {
	private long id;
	private String description;
	private Being owner;
	/**
	 * @return Returns the description.
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description The description to set.
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return Returns the id.
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return Returns the owner.
	 */
	public Being getOwner() {
		return owner;
	}
	/**
	 * @param owner The owner to set.
	 */
	public void setOwner(Being owner) {
		this.owner = owner;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?