// default package
// Generated Mar 11, 2006 2:29:57 AM by Hibernate Tools 3.1.0.beta4
public class BaseAppConfig implements java.io.Serializable {
// Fields
private Long appConfigId;
private String name;
private String value;
private String description;
// Constructors
/** default constructor */
public BaseAppConfig() {
}
/** minimal constructor */
public BaseAppConfig(String name) {
this.name = name;
}
/** full constructor */
public BaseAppConfig(String name, String value, String description) {
this.name = name;
this.value = value;
this.description = description;
}
// Property accessors
public Long getAppConfigId() {
return this.appConfigId;
}
public void setAppConfigId(Long appConfigId) {
this.appConfigId = appConfigId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
/**
* toString
* @return String
*/
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
buffer.append("name").append("='").append(getName()).append("' ");
buffer.append("value").append("='").append(getValue()).append("' ");
buffer.append("]");
return buffer.toString();
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof BaseAppConfig) ) return false;
BaseAppConfig castOther = ( BaseAppConfig ) other;
return ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
return result;
}
}
|