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

📄 itemkey.java

📁 一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
💻 JAVA
字号:
package salesdb;
/**
 * Key class for Entity Bean: Item
 */
public class ItemKey implements java.io.Serializable {
	static final long serialVersionUID = 3206093459760846163L;
	/**
	 * Implementation field for persistent attribute: itemid
	 */
	public java.lang.Long itemid;
	/**
	 * Creates an empty key for Entity Bean: Item
	 */
	public ItemKey() {
	}
	/**
	 * Creates a key for Entity Bean: Item
	 */
	public ItemKey(java.lang.Long itemid) {
		this.itemid = itemid;
	}
	/**
	 * Returns true if both keys are equal.
	 */
	public boolean equals(java.lang.Object otherKey) {
		if (otherKey instanceof salesdb.ItemKey) {
			salesdb.ItemKey o = (salesdb.ItemKey) otherKey;
			return ((this.itemid.equals(o.itemid)));
		}
		return false;
	}
	/**
	 * Returns the hash code for the key.
	 */
	public int hashCode() {
		return (itemid.hashCode());
	}
	/**
	* Get accessor for persistent attribute: itemid
	*/
	public java.lang.Long getItemid() {
		return itemid;
	}
	/**
	* Set accessor for persistent attribute: itemid
	*/
	public void setItemid(java.lang.Long newItemid) {
		itemid = newItemid;
	}
}

⌨️ 快捷键说明

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