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

📄 clothes.java

📁 hibernate3.2.6源码和jar包
💻 JAVA
字号:
//$Id: Clothes.java 11282 2007-03-14 22:05:59Z epbernard $package org.hibernate.test.annotations.referencedcolumnname;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.Id;/** * @author Emmanuel Bernard */@Entitypublic class Clothes {	private Integer id;	private String type;	private String flavor;	public Clothes() {	}	public Clothes(String type, String flavor) {		this.type = type;		this.flavor = flavor;	}	@Id	@GeneratedValue	public Integer getId() {		return id;	}	public void setId(Integer id) {		this.id = id;	}	public String getType() {		return type;	}	public void setType(String type) {		this.type = type;	}	public String getFlavor() {		return flavor;	}	public void setFlavor(String flavor) {		this.flavor = flavor;	}	public boolean equals(Object o) {		if ( this == o ) return true;		if ( !( o instanceof Clothes ) ) return false;		final Clothes clothes = (Clothes) o;		if ( !flavor.equals( clothes.flavor ) ) return false;		if ( !type.equals( clothes.type ) ) return false;		return true;	}	public int hashCode() {		int result;		result = type.hashCode();		result = 29 * result + flavor.hashCode();		return result;	}}

⌨️ 快捷键说明

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