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

📄 drawer.java

📁 hibernate3.2.6源码和jar包
💻 JAVA
字号:
//$Id: Drawer.java 11282 2007-03-14 22:05:59Z epbernard $package org.hibernate.test.annotations.indexcoll;import java.util.List;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.Id;import javax.persistence.OneToMany;import org.hibernate.annotations.IndexColumn;/** * @author Emmanuel Bernard */@Entitypublic class Drawer {	private Long id;	private List<Dress> dresses;	@Id	@GeneratedValue	public Long getId() {		return id;	}	public void setId(Long id) {		this.id = id;	}	/**	 * Unidirectional one to many list	 *	 * @return	 */	@OneToMany	@IndexColumn(name = "from_bottom_position")	public List<Dress> getDresses() {		return dresses;	}	public void setDresses(List<Dress> dresses) {		this.dresses = dresses;	}	public boolean equals(Object o) {		if ( this == o ) return true;		if ( !( o instanceof Drawer ) ) return false;		final Drawer drawer = (Drawer) o;		if ( !getId().equals( drawer.getId() ) ) return false;		return true;	}	public int hashCode() {		return getId().hashCode();	}}

⌨️ 快捷键说明

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