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

📄 contained.java

📁 人力资源管理系统 系统把几乎所有与人力资源相关的数据统一管理
💻 JAVA
字号:
//$Id: Contained.java,v 1.1.2.1 2003/11/08 02:25:29 oneovthafew Exp $package org.hibernate.test;import java.util.ArrayList;import java.util.Collection;public class Contained {	private Container container;	private long id;	private Collection bag = new ArrayList();	private Collection lazyBag = new ArrayList();		public boolean equals(Object other) {		return id==( (Contained) other ).getId();	}	public int hashCode() {		return new Long(id).hashCode();	}		/**	 * Returns the container.	 * @return Container	 */	public Container getContainer() {		return container;	}		/**	 * Returns the id.	 * @return long	 */	public long getId() {		return id;	}		/**	 * Sets the container.	 * @param container The container to set	 */	public void setContainer(Container container) {		this.container = container;	}		/**	 * Sets the id.	 * @param id The id to set	 */	public void setId(long id) {		this.id = id;	}		/**	 * Returns the bag.	 * @return Collection	 */	public Collection getBag() {		return bag;	}		/**	 * Sets the bag.	 * @param bag The bag to set	 */	public void setBag(Collection bag) {		this.bag = bag;	}		/**	 * Returns the lazyBag.	 * @return Collection	 */	public Collection getLazyBag() {		return lazyBag;	}		/**	 * Sets the lazyBag.	 * @param lazyBag The lazyBag to set	 */	public void setLazyBag(Collection lazyBag) {		this.lazyBag = lazyBag;	}	}

⌨️ 快捷键说明

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