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

📄 crazycompositekey.java

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 JAVA
字号:
// $Id: CrazyCompositeKey.java 6970 2005-05-31 20:24:41Z oneovthafew $package org.hibernate.test.hql;import java.io.Serializable;/** * Implementation of CrazyCompositeKey. * * @author Steve Ebersole */public class CrazyCompositeKey implements Serializable {	private Long id;	private Long otherId;	public Long getId() {		return id;	}	public void setId(Long id) {		this.id = id;	}	public Long getOtherId() {		return otherId;	}	public void setOtherId(Long otherId) {		this.otherId = otherId;	}		public boolean equals(Object that) {		CrazyCompositeKey cck = (CrazyCompositeKey) that;		return cck.id.longValue() == id.longValue()			&& cck.otherId.longValue() == otherId.longValue();	}		public int hashCode() {		return id.hashCode() + otherId.hashCode();	}}

⌨️ 快捷键说明

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