【Java开源代码栏目提醒】:本文主要为网学会员提供Acc.java,希望对需要Acc.java网友有所帮助,学习一下!
/*
*/
package com.relationinfo.finance.dto;
import java.io.Serializable;
public class Acc implements Serializable
{
/**
* 属性映射到列 USER_ID in the ACC table.
*/
private int userId;
/**
* 属性映射到列 ACC_ID in the ACC table.
*/
private int accId;
/**
* 属性映射到列 ACC_NAME in the ACC table.
*/
private String accName;
/**
* Method 'Acc'
*
*/
public Acc()
{
}
/**
* Method 'getUserId'
*
* @return int
*/
public int getUserId()
{
return userId;
}
/**
* Method 'setUserId'
*
* @param userId
*/
public void setUserId(int userId)
{
this.userId = userId;
}
/**
* Method 'getAccId'
*
* @return int
*/
public int getAccId()
{
return accId;
}
/**
* Method 'setAccId'
*
* @param accId
*/
public void setAccId(int accId)
{
this.accId = accId;
}
/**
* Method 'getAccName'
*
* @return String
*/
public String getAccName()
{
return accName;
}
/**
* Method 'setAccName'
*
* @param accName
*/
public void setAccName(String accName)
{
this.accName = accName;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof Acc)) {
return false;
}
Acc _cast = (Acc) _other;
if (userId != _cast.userId) {
return false;
}
if (accId != _cast.accId) {
return false;
}
if (accName == null ? _cast.accName != accName : !accName.equals( _cast.accName )) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + userId;
_hashCode = 29 * _hashCode + accId;
if (accName != null) {
_hashCode = 29 * _hashCode + accName.hashCode();
}
return _hashCode;
}
/**
* Method 'createPk'
*
* @return AccPk
*/
public AccPk createPk()
{
return new AccPk(userId, accId);
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "com.mycompany.myapp.dto.Acc: " );
ret.append( "userId='" + userId + "'" );
ret.append( ", accId='" + accId + "'" );
ret.append( ", accName='" + accName + "'" );
return ret.toString();
}
}
上一篇:
AcaiFilter.java
下一篇:
毕业论文--基于Android平台的交通事故快速处理与查询系统