📄 basecustomers.java
字号:
package com.softeem.customer.pojo.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the customers table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="customers"
*/
public abstract class BaseCustomers implements Serializable {
public static String REF = "Customers";
public static String PROP_ACCOUNT = "account";
public static String PROP_PASSWORD = "password";
public static String PROP_EMAIL = "email";
public static String PROP_REMARK = "remark";
public static String PROP_HOMESITE = "homesite";
public static String PROP_FIXED_PHONE = "fixedPhone";
public static String PROP_FAX = "fax";
public static String PROP_MOBILE_PHONE = "mobilePhone";
public static String PROP_ZIP_CODE = "zipCode";
public static String PROP_ADDRESS = "address";
public static String PROP_NAME = "name";
public static String PROP_ID = "id";
// constructors
public BaseCustomers () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseCustomers (java.lang.Integer id) {
this.setId(id);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String account;
private java.lang.String name;
private java.lang.String password;
private java.lang.String mobilePhone;
private java.lang.String fax;
private java.lang.String fixedPhone;
private java.lang.String address;
private java.lang.String zipCode;
private java.lang.String email;
private java.lang.String homesite;
private java.lang.String remark;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="identity"
* column="id"
*/
public java.lang.Integer getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Integer id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: account
*/
public java.lang.String getAccount () {
return account;
}
/**
* Set the value related to the column: account
* @param account the account value
*/
public void setAccount (java.lang.String account) {
this.account = account;
}
/**
* Return the value associated with the column: name
*/
public java.lang.String getName () {
return name;
}
/**
* Set the value related to the column: name
* @param name the name value
*/
public void setName (java.lang.String name) {
this.name = name;
}
/**
* Return the value associated with the column: password
*/
public java.lang.String getPassword () {
return password;
}
/**
* Set the value related to the column: password
* @param password the password value
*/
public void setPassword (java.lang.String password) {
this.password = password;
}
/**
* Return the value associated with the column: mobilePhone
*/
public java.lang.String getMobilePhone () {
return mobilePhone;
}
/**
* Set the value related to the column: mobilePhone
* @param mobilePhone the mobilePhone value
*/
public void setMobilePhone (java.lang.String mobilePhone) {
this.mobilePhone = mobilePhone;
}
/**
* Return the value associated with the column: fax
*/
public java.lang.String getFax () {
return fax;
}
/**
* Set the value related to the column: fax
* @param fax the fax value
*/
public void setFax (java.lang.String fax) {
this.fax = fax;
}
/**
* Return the value associated with the column: fixedPhone
*/
public java.lang.String getFixedPhone () {
return fixedPhone;
}
/**
* Set the value related to the column: fixedPhone
* @param fixedPhone the fixedPhone value
*/
public void setFixedPhone (java.lang.String fixedPhone) {
this.fixedPhone = fixedPhone;
}
/**
* Return the value associated with the column: address
*/
public java.lang.String getAddress () {
return address;
}
/**
* Set the value related to the column: address
* @param address the address value
*/
public void setAddress (java.lang.String address) {
this.address = address;
}
/**
* Return the value associated with the column: zipCode
*/
public java.lang.String getZipCode () {
return zipCode;
}
/**
* Set the value related to the column: zipCode
* @param zipCode the zipCode value
*/
public void setZipCode (java.lang.String zipCode) {
this.zipCode = zipCode;
}
/**
* Return the value associated with the column: email
*/
public java.lang.String getEmail () {
return email;
}
/**
* Set the value related to the column: email
* @param email the email value
*/
public void setEmail (java.lang.String email) {
this.email = email;
}
/**
* Return the value associated with the column: homesite
*/
public java.lang.String getHomesite () {
return homesite;
}
/**
* Set the value related to the column: homesite
* @param homesite the homesite value
*/
public void setHomesite (java.lang.String homesite) {
this.homesite = homesite;
}
/**
* Return the value associated with the column: remark
*/
public java.lang.String getRemark () {
return remark;
}
/**
* Set the value related to the column: remark
* @param remark the remark value
*/
public void setRemark (java.lang.String remark) {
this.remark = remark;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.softeem.customer.pojo.Customers)) return false;
else {
com.softeem.customer.pojo.Customers customers = (com.softeem.customer.pojo.Customers) obj;
if (null == this.getId() || null == customers.getId()) return false;
else return (this.getId().equals(customers.getId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -