📄 abstractcustomer.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
{
/** The cached hash code value for this instance. Settting to 0 triggers re-calculation. */
private int hashValue = 0;
/** The composite primary key value. */
private java.lang.Integer customerId;
/** The value of the simple custName property. */
private java.lang.String custName;
/** The value of the simple password property. */
private java.lang.String password;
/** The value of the simple email property. */
private java.lang.String email;
/**
* Simple constructor of AbstractCustomer instances.
*/
public AbstractCustomer()
{
}
/**
* Constructor of AbstractCustomer instances given a simple primary key.
* @param customerId
*/
public AbstractCustomer(java.lang.Integer customerId)
{
this.setCustomerId(customerId);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.Integer
*/
public java.lang.Integer getCustomerId()
{
return customerId;
}
/**
* Set the simple primary key value that identifies this object.
* @param customerId
*/
public void setCustomerId(java.lang.Integer customerId)
{
this.hashValue = 0;
this.customerId = customerId;
}
/**
* Return the value of the cust_name column.
* @return java.lang.String
*/
public java.lang.String getCustName()
{
return this.custName;
}
/**
* Set the value of the cust_name column.
* @param custName
*/
public void setCustName(java.lang.String custName)
{
this.custName = custName;
}
/**
* Return the value of the password column.
* @return java.lang.String
*/
public java.lang.String getPassword()
{
return this.password;
}
/**
* Set the value of the password column.
* @param password
*/
public void setPassword(java.lang.String password)
{
this.password = password;
}
/**
* Return the value of the email column.
* @return java.lang.String
*/
public java.lang.String getEmail()
{
return this.email;
}
/**
* Set the value of the email column.
* @param email
*/
public void setEmail(java.lang.String email)
{
this.email = email;
}
/**
* Implementation of the equals comparison on the basis of equality of the primary key values.
* @param rhs
* @return boolean
*/
public boolean equals(Object rhs)
{
if (rhs == null)
return false;
if (! (rhs instanceof Customer))
return false;
Customer that = (Customer) rhs;
if (this.getCustomerId() == null || that.getCustomerId() == null)
return false;
return (this.getCustomerId().equals(that.getCustomerId()));
}
/**
* Implementation of the hashCode method conforming to the Bloch pattern with
* the exception of array properties (these are very unlikely primary key types).
* @return int
*/
public int hashCode()
{
if (this.hashValue == 0)
{
int result = 17;
int customerIdValue = this.getCustomerId() == null ? 0 : this.getCustomerId().hashCode();
result = result * 37 + customerIdValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -