一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习

源代码在线查看: purchasekey.java

软件大小: 2249 K
上传用户: face137
关键词: EJB DB2 JSP 连接
下载地址: 免注册下载 普通下载 VIP

相关代码

				package salesdb;
				/**
				 * Key class for Entity Bean: Purchase
				 */
				public class PurchaseKey implements java.io.Serializable {
					static final long serialVersionUID = 3206093459760846163L;
					/**
					 * Implementation field for persistent attribute: purchaseid
					 */
					public java.lang.Long purchaseid;
					/**
					 * Creates an empty key for Entity Bean: Purchase
					 */
					public PurchaseKey() {
					}
					/**
					 * Creates a key for Entity Bean: Purchase
					 */
					public PurchaseKey(java.lang.Long purchaseid) {
						this.purchaseid = purchaseid;
					}
					/**
					 * Returns true if both keys are equal.
					 */
					public boolean equals(java.lang.Object otherKey) {
						if (otherKey instanceof salesdb.PurchaseKey) {
							salesdb.PurchaseKey o = (salesdb.PurchaseKey) otherKey;
							return ((this.purchaseid.equals(o.purchaseid)));
						}
						return false;
					}
					/**
					 * Returns the hash code for the key.
					 */
					public int hashCode() {
						return (purchaseid.hashCode());
					}
				}
							

相关资源