📄 dtpropertiespk.java
字号:
/*
* This source file was generated by FireStorm/DAO 3.0 (build 99)
* on 26-十月-2005 at 09:50:56
*
* If you purchase a full license for FireStorm/DAO you can customize this file header.
*
* For more information please visit http://www.codefutures.com/products/firestorm
*/
package cn.wanfeng.myblog.dto;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* This class represents the primary key of the dtproperties table.
*/
public class DtpropertiesPk implements Serializable
{
private int id;
private String property;
/**
* This attribute represents whether the primitive attribute id is null.
*/
private boolean idNull;
/**
* Sets the value of id
*/
public void setId(int id)
{
this.id = id;
}
/**
* Gets the value of id
*/
public int getId()
{
return id;
}
/**
* Sets the value of property
*/
public void setProperty(String property)
{
this.property = property;
}
/**
* Gets the value of property
*/
public String getProperty()
{
return property;
}
/**
* Method 'DtpropertiesPk'
*
*/
public DtpropertiesPk()
{
}
/**
* Method 'DtpropertiesPk'
*
* @param id
* @param property
*/
public DtpropertiesPk(final int id, final String property)
{
this.id = id;
this.property = property;
}
/**
* Sets the value of idNull
*/
public void setIdNull(boolean idNull)
{
this.idNull = idNull;
}
/**
* Gets the value of idNull
*/
public boolean isIdNull()
{
return idNull;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof DtpropertiesPk)) {
return false;
}
final DtpropertiesPk _cast = (DtpropertiesPk) _other;
if (id != _cast.id) {
return false;
}
if (property == null ? _cast.property != property : !property.equals( _cast.property )) {
return false;
}
if (idNull != _cast.idNull) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + id;
if (property != null) {
_hashCode = 29 * _hashCode + property.hashCode();
}
_hashCode = 29 * _hashCode + (idNull ? 1 : 0);
return _hashCode;
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "cn.wanfeng.myblog.dto.DtpropertiesPk: " );
ret.append( "id='" + id + "'" );
ret.append( ", property='" + property + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -