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

📄 relation.java

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

package com.relationinfo.customertrace.dto;

import com.relationinfo.customertrace.dao.*;
import com.relationinfo.customertrace.exceptions.*;
import com.relationinfo.customertrace.factory.*;

import java.io.Serializable;
import java.util.*;

public class Relation implements Serializable
{
	/** 
	 * 属性映射到列 relationcode in the relation table.
	 */
	private String relationcode;

	/** 
	 * 属性映射到列 customercode in the relation table.
	 */
	private String customercode;

	/** 
	 * 属性映射到列 relationname in the relation table.
	 */
	private String relationname;

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

	/**
	 * Method 'getRelationcode'
	 * 
	 * @return String
	 */
	public String getRelationcode()
	{
		return relationcode;
	}

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

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

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

	/**
	 * Method 'getRelationname'
	 * 
	 * @return String
	 */
	public String getRelationname()
	{
		return relationname;
	}

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

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof Relation)) {
			return false;
		}
		
		 Relation _cast = (Relation) _other;
		if (relationcode == null ? _cast.relationcode != relationcode : !relationcode.equals( _cast.relationcode )) {
			return false;
		}
		
		if (customercode == null ? _cast.customercode != customercode : !customercode.equals( _cast.customercode )) {
			return false;
		}
		
		if (relationname == null ? _cast.relationname != relationname : !relationname.equals( _cast.relationname )) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		if (relationcode != null) {
			_hashCode = 29 * _hashCode + relationcode.hashCode();
		}
		
		if (customercode != null) {
			_hashCode = 29 * _hashCode + customercode.hashCode();
		}
		
		if (relationname != null) {
			_hashCode = 29 * _hashCode + relationname.hashCode();
		}
		
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return RelationPk
	 */
	public RelationPk createPk()
	{
		return new RelationPk(relationcode);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.mycompany.myapp.dto.Relation: " );
		ret.append( "relationcode='" + relationcode + "'" );
		ret.append( ", customercode='" + customercode + "'" );
		ret.append( ", relationname='" + relationname + "'" );
		return ret.toString();
	}

}

⌨️ 快捷键说明

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