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

📄 customer.java

📁 由于跟踪客户的购物意向
💻 JAVA
字号:
/*
 */

package com.relationinfo.customertrace.dto;

import java.io.Serializable;
import java.util.Date;

public class Customer implements Serializable
{
	/** 
	 * 属性映射到列 customercode in the customer table.
	 */
	private String customercode;

	/** 
	 * 属性映射到列 customertypecode in the customer table.
	 */
	private String customertypecode;

	/** 
	 * 属性映射到列 customername in the customer table.
	 */
	private String customername;

	/** 
	 * 属性映射到列 address in the customer table.
	 */
	private String address;

	/** 
	 * 属性映射到列 phone in the customer table.
	 */
	private String phone;

	/** 
	 * 属性映射到列 mobile in the customer table.
	 */
	private String mobile;

	/** 
	 * 属性映射到列 email in the customer table.
	 */
	private String email;

	/** 
	 * 属性映射到列 birthday in the customer table.
	 */
	private Date birthday;

	/** 
	 * 属性映射到列 hobby in the customer table.
	 */
	private String hobby;

	/** 
	 * 属性映射到列 note in the customer table.
	 */
	private String note;

	/**
	 * Method 'Customer'
	 * 
	 */
	public Customer()
	{
	}

	/**
	 * Method 'getCustomercode'
	 * 
	 * @return String
	 */
	public String getCustomercode()
	{
		return customercode;
	}

	/**
	 * Method 'setCustomercode'
	 * 
	 * @param customercode
	 */
	public void setCustomercode(String customercode)
	{
		this.customercode = customercode;
	}

	/**
	 * Method 'getCustomertypecode'
	 * 
	 * @return String
	 */
	public String getCustomertypecode()
	{
		return customertypecode;
	}

	/**
	 * Method 'setCustomertypecode'
	 * 
	 * @param customertypecode
	 */
	public void setCustomertypecode(String customertypecode)
	{
		this.customertypecode = customertypecode;
	}

	/**
	 * Method 'getCustomername'
	 * 
	 * @return String
	 */
	public String getCustomername()
	{
		return customername;
	}

	/**
	 * Method 'setCustomername'
	 * 
	 * @param customername
	 */
	public void setCustomername(String customername)
	{
		this.customername = customername;
	}

	/**
	 * Method 'getAddress'
	 * 
	 * @return String
	 */
	public String getAddress()
	{
		return address;
	}

	/**
	 * Method 'setAddress'
	 * 
	 * @param address
	 */
	public void setAddress(String address)
	{
		this.address = address;
	}

	/**
	 * Method 'getPhone'
	 * 
	 * @return String
	 */
	public String getPhone()
	{
		return phone;
	}

	/**
	 * Method 'setPhone'
	 * 
	 * @param phone
	 */
	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	/**
	 * Method 'getMobile'
	 * 
	 * @return String
	 */
	public String getMobile()
	{
		return mobile;
	}

	/**
	 * Method 'setMobile'
	 * 
	 * @param mobile
	 */
	public void setMobile(String mobile)
	{
		this.mobile = mobile;
	}

	/**
	 * Method 'getEmail'
	 * 
	 * @return String
	 */
	public String getEmail()
	{
		return email;
	}

	/**
	 * Method 'setEmail'
	 * 
	 * @param email
	 */
	public void setEmail(String email)
	{
		this.email = email;
	}

	/**
	 * Method 'getBirthday'
	 * 
	 * @return Date
	 */
	public Date getBirthday()
	{
		return birthday;
	}

	/**
	 * Method 'setBirthday'
	 * 
	 * @param birthday
	 */
	public void setBirthday(Date birthday)
	{
		this.birthday = birthday;
	}

	/**
	 * Method 'getHobby'
	 * 
	 * @return String
	 */
	public String getHobby()
	{
		return hobby;
	}

	/**
	 * Method 'setHobby'
	 * 
	 * @param hobby
	 */
	public void setHobby(String hobby)
	{
		this.hobby = hobby;
	}

	/**
	 * Method 'getNote'
	 * 
	 * @return String
	 */
	public String getNote()
	{
		return note;
	}

	/**
	 * Method 'setNote'
	 * 
	 * @param note
	 */
	public void setNote(String note)
	{
		this.note = note;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof Customer)) {
			return false;
		}
		
		 Customer _cast = (Customer) _other;
		if (customercode == null ? _cast.customercode != customercode : !customercode.equals( _cast.customercode )) {
			return false;
		}
		
		if (customertypecode == null ? _cast.customertypecode != customertypecode : !customertypecode.equals( _cast.customertypecode )) {
			return false;
		}
		
		if (customername == null ? _cast.customername != customername : !customername.equals( _cast.customername )) {
			return false;
		}
		
		if (address == null ? _cast.address != address : !address.equals( _cast.address )) {
			return false;
		}
		
		if (phone == null ? _cast.phone != phone : !phone.equals( _cast.phone )) {
			return false;
		}
		
		if (mobile == null ? _cast.mobile != mobile : !mobile.equals( _cast.mobile )) {
			return false;
		}
		
		if (email == null ? _cast.email != email : !email.equals( _cast.email )) {
			return false;
		}
		
		if (birthday == null ? _cast.birthday != birthday : !birthday.equals( _cast.birthday )) {
			return false;
		}
		
		if (hobby == null ? _cast.hobby != hobby : !hobby.equals( _cast.hobby )) {
			return false;
		}
		
		if (note == null ? _cast.note != note : !note.equals( _cast.note )) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		if (customercode != null) {
			_hashCode = 29 * _hashCode + customercode.hashCode();
		}
		
		if (customertypecode != null) {
			_hashCode = 29 * _hashCode + customertypecode.hashCode();
		}
		
		if (customername != null) {
			_hashCode = 29 * _hashCode + customername.hashCode();
		}
		
		if (address != null) {
			_hashCode = 29 * _hashCode + address.hashCode();
		}
		
		if (phone != null) {
			_hashCode = 29 * _hashCode + phone.hashCode();
		}
		
		if (mobile != null) {
			_hashCode = 29 * _hashCode + mobile.hashCode();
		}
		
		if (email != null) {
			_hashCode = 29 * _hashCode + email.hashCode();
		}
		
		if (birthday != null) {
			_hashCode = 29 * _hashCode + birthday.hashCode();
		}
		
		if (hobby != null) {
			_hashCode = 29 * _hashCode + hobby.hashCode();
		}
		
		if (note != null) {
			_hashCode = 29 * _hashCode + note.hashCode();
		}
		
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return CustomerPk
	 */
	public CustomerPk createPk()
	{
		return new CustomerPk(customercode);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.mycompany.myapp.dto.Customer: " );
		ret.append( "customercode='" + customercode + "'" );
		ret.append( ", customertypecode='" + customertypecode + "'" );
		ret.append( ", customername='" + customername + "'" );
		ret.append( ", address='" + address + "'" );
		ret.append( ", phone='" + phone + "'" );
		ret.append( ", mobile='" + mobile + "'" );
		ret.append( ", email='" + email + "'" );
		ret.append( ", birthday='" + birthday + "'" );
		ret.append( ", hobby='" + hobby + "'" );
		ret.append( ", note='" + note + "'" );
		return ret.toString();
	}

}

⌨️ 快捷键说明

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