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

📄 abstractcustomer.java

📁 利用Java开发的网上书店系统
💻 JAVA
字号:
/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Thu Sep 01 17:36:25 CST 2005 by MyEclipse Hibernate Tool.
 */
package com.ascent.bean;

import java.io.Serializable;

/**
 * A class that represents a row in the customer table. You can customize the
 * behavior of this class by editing the class, {@link Customer()}. WARNING: DO
 * NOT EDIT THIS FILE. This is a generated file that is synchronized * by
 * MyEclipse Hibernate tool integration.
 */
public abstract class AbstractCustomer implements Serializable {
	private int hashValue = 0;

	private Integer customer_id;

	private String cust_name;

	private String password;

	private String email;

	private int flag;

	public AbstractCustomer() {
	}

	public AbstractCustomer(Integer customer_id) {
		this.setCustomer_id(customer_id);
	}

	public String getCust_name() {
		return cust_name;
	}

	public void setCust_name(String cust_name) {
		this.cust_name = cust_name;
	}

	public Integer getCustomer_id() {
		return customer_id;
	}

	public void setCustomer_id(Integer customer_id) {
		this.customer_id = customer_id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean equals(Object rhs) {
		if (rhs == null)
			return false;
		if (!(rhs instanceof Customer))
			return false;
		Customer that = (Customer) rhs;
		if (this.getCustomer_id() == null || that.getCustomer_id() == null)
			return false;
		return (this.getCustomer_id().equals(that.getCustomer_id()));
	}

	public int hashCode() {
		if (this.hashValue == 0) {
			int result = 17;
			int customerIdValue = this.getCustomer_id() == null ? 0 : this
					.getCustomer_id().hashCode();
			result = result * 37 + customerIdValue;
			this.hashValue = result;
		}
		return this.hashValue;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

}

⌨️ 快捷键说明

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