package com.scitel.framework.entity;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
public abstract class BaseObject implements Serializable {
/**
* toString
*
* @return String
* 填入代码 return ToStringBuilder.reflectionToString(this);
*/
public String toString(){
return ToStringBuilder.reflectionToString(this);
}
/**
* equals
*
* @param o Object
* @return boolean
* 填入代码 return EqualsBuilder.reflectionEquals(this, o);
*/
public boolean equals(Object o){
return EqualsBuilder.reflectionEquals(this, o);
}
/**
* hashCode
*
* @return int
* 填入代码 return HashCodeBuilder.reflectionHashCode(this);
*/
public int hashCode(){
return HashCodeBuilder.reflectionHashCode(this);
}
}
posted on 2006-03-10 15:18
有猫相伴的日子 阅读(243)
评论(0) 编辑 收藏