item.java

来自「hibernate-3.0.5 中文文档」· Java 代码 · 共 53 行

JAVA
53
字号
//$Id: Item.java,v 1.2 2005/05/16 05:58:49 oneovthafew Exp $
package org.hibernate.test.joinfetch;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Gavin King
 */
public class Item {
	
	private String description;
	private Long id;
	private Set bids = new HashSet();
	private Set comments = new HashSet();

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	Item() {}
	public Item(String desc) { description = desc; }

	public Set getBids() {
		return bids;
	}

	public void setBids(Set bids) {
		this.bids = bids;
	}

	public Set getComments() {
		return comments;
	}

	public void setComments(Set comments) {
		this.comments = comments;
	}

}

⌨️ 快捷键说明

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