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

📄 associationkey.java

📁 一个Java持久层类库
💻 JAVA
字号:
//$Id: AssociationKey.java 7458 2005-07-12 20:12:57Z oneovthafew $package org.hibernate.engine;import java.io.Serializable;/** * Identifies a named association belonging to a particular * entity instance. Used to record the fact that an association * is null during loading. *  * @author Gavin King */final class AssociationKey implements Serializable {	private EntityKey ownerKey;	private String propertyName;		public AssociationKey(EntityKey ownerKey, String propertyName) {		this.ownerKey = ownerKey;		this.propertyName = propertyName;	}		public boolean equals(Object that) {		AssociationKey key = (AssociationKey) that;		return key.propertyName.equals(propertyName) && 			key.ownerKey.equals(ownerKey);	}		public int hashCode() {		return ownerKey.hashCode() + propertyName.hashCode();	}}

⌨️ 快捷键说明

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