📄 customerpk.java
字号:
/*
*/
package com.relationinfo.customertrace.dto;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* This class represents the primary key of the customer table.
*/
public class CustomerPk implements Serializable
{
private String customercode;
/**
* 设置 customercode
*/
public void setCustomercode(String customercode)
{
this.customercode = customercode;
}
/**
* 获得 customercode
*/
public String getCustomercode()
{
return customercode;
}
/**
* Method 'CustomerPk'
*
*/
public CustomerPk()
{
}
/**
* Method 'CustomerPk'
*
* @param customercode
*/
public CustomerPk( String customercode)
{
this.customercode = customercode;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof CustomerPk)) {
return false;
}
CustomerPk _cast = (CustomerPk) _other;
if (customercode == null ? _cast.customercode != customercode : !customercode.equals( _cast.customercode )) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
if (customercode != null) {
_hashCode = 29 * _hashCode + customercode.hashCode();
}
return _hashCode;
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "com.mycompany.myapp.dto.CustomerPk: " );
ret.append( "customercode='" + customercode + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -