item.java

来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 65 行

JAVA
65
字号
//$Id: Item.java 6957 2005-05-31 04:21:58Z oneovthafew $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 Category category;	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(Category cat, String desc) { 		description = desc; 		category = cat;	}	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;	}	public Category getCategory() {		return category;	}	public void setCategory(Category category) {		this.category = category;	}}

⌨️ 快捷键说明

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