| At line 308 added 128 lines. |
| [{Java2HtmlPlugin |
|
| package org.appfuse.model; |
|
| import org.apache.commons.lang.builder.EqualsBuilder; |
| import org.apache.commons.lang.builder.HashCodeBuilder; |
| import org.apache.commons.lang.builder.ToStringBuilder; |
| import org.apache.commons.lang.builder.ToStringStyle; |
|
| /** |
| * @hibernate.class table="category" |
| */ |
| public class Category extends BaseObject { |
|
| private Long id; |
|
| private String categoryName; |
|
| private String categoryDescription; |
|
| private Integer version; |
|
| /** |
| * @return Returns the categoryDescription. |
| * |
| * @hibernate.property column="category_description" |
| */ |
| public String getCategoryDescription() { |
| return categoryDescription; |
| } |
|
| /** |
| * @param categoryDescription |
| * The categoryDescription to set. |
| */ |
| public void setCategoryDescription(String categoryDescription) { |
| this.categoryDescription = categoryDescription; |
| } |
|
| /** |
| * @return Returns the categoryName. |
| * |
| * @hibernate.property column="category_name" |
| */ |
| public String getCategoryName() { |
| return categoryName; |
| } |
|
| /** |
| * @param categoryName |
| * The categoryName to set. |
| */ |
| public void setCategoryName(String categoryName) { |
| this.categoryName = categoryName; |
| } |
|
| /** |
| * @return Returns the id. |
| * |
| * @hibernate.id column="category_id" generator-class="native" |
| * unsaved-value="null" |
| */ |
| public Long getId() { |
| return id; |
| } |
|
| /** |
| * @param id |
| * The id to set. |
| */ |
| public void setId(Long id) { |
| this.id = id; |
| } |
|
| /** |
| * @return Returns the version. |
| * |
| * @hibernate.version |
| */ |
| public Integer getVersion() { |
| return version; |
| } |
|
| /** |
| * @param version |
| * The version to set. |
| */ |
| public void setVersion(Integer version) { |
| this.version = version; |
| } |
|
| /** |
| * @see java.lang.Object#equals(Object) |
| */ |
| public boolean equals(Object object) { |
| if (!(object instanceof Category)) { |
| return false; |
| } |
| Category rhs = (Category) object; |
| return new EqualsBuilder().append(this.categoryDescription, |
| rhs.categoryDescription).append(this.categoryName, |
| rhs.categoryName).append(this.id, rhs.id).append(this.version, |
| rhs.version).isEquals(); |
| } |
|
| /** |
| * @see java.lang.Object#hashCode() |
| */ |
| public int hashCode() { |
| return new HashCodeBuilder(-837614407, -1874103513).append( |
| this.categoryDescription).append(this.categoryName).append( |
| this.id).append(this.version).toHashCode(); |
| } |
|
| /** |
| * @see java.lang.Object#toString() |
| */ |
| public String toString() { |
| return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| .append("id", this.id) |
| .append("categoryName", this.categoryName).append("version", |
| this.version).append("categoryDescription", |
| this.categoryDescription).toString(); |
| } |
| } |
|
| }] |
|