📄 relationpk.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 relation table.
*/
public class RelationPk implements Serializable
{
private String relationcode;
/**
* 设置 relationcode
*/
public void setRelationcode(String relationcode)
{
this.relationcode = relationcode;
}
/**
* 获得 relationcode
*/
public String getRelationcode()
{
return relationcode;
}
/**
* Method 'RelationPk'
*
*/
public RelationPk()
{
}
/**
* Method 'RelationPk'
*
* @param relationcode
*/
public RelationPk( String relationcode)
{
this.relationcode = relationcode;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof RelationPk)) {
return false;
}
RelationPk _cast = (RelationPk) _other;
if (relationcode == null ? _cast.relationcode != relationcode : !relationcode.equals( _cast.relationcode )) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
if (relationcode != null) {
_hashCode = 29 * _hashCode + relationcode.hashCode();
}
return _hashCode;
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "com.mycompany.myapp.dto.RelationPk: " );
ret.append( "relationcode='" + relationcode + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -