| At line 617 added 177 lines. |
| [{Java2HtmlPlugin |
|
| package org.appfuse.model; |
|
| import java.util.Date; |
|
| import java.util.List; |
|
| 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="weblog" |
| */ |
| public class Weblog extends BaseObject { |
|
| private Long weblogId; |
|
| private String username; |
|
| private Date dateCreated; |
|
| private String blogTitle; |
|
| private Integer version; |
|
| private List entries; |
|
| /** |
| * @return Returns the blogTitle. |
| * |
| * @hibernate.property column="blog_title" |
| */ |
| public String getBlogTitle() { |
| return blogTitle; |
| } |
|
| /** |
| * @param blogTitle |
| * The blogTitle to set. |
| */ |
| public void setBlogTitle(String blogTitle) { |
| this.blogTitle = blogTitle; |
| } |
|
| /** |
| * @return Returns the dateCreated. |
| * |
| * @hibernate.property column="date_created" |
| */ |
| public Date getDateCreated() { |
| return dateCreated; |
| } |
|
| /** |
| * @param dateCreated |
| * The dateCreated to set. |
| */ |
| public void setDateCreated(Date dateCreated) { |
| this.dateCreated = dateCreated; |
| } |
|
| /** |
| * @return Returns the entries. |
| * |
| * @hibernate.bag name="entries" lazy="true" inverse="true" |
| * cascade="delete" |
| * @hibernate.collection-key column="entry_id" |
| * @hibernate.collection-one-to-many |
| * class="org.appfuse.model.Entry" |
| */ |
| public List getEntries() { |
| return entries; |
| } |
|
| /** |
| * @param entries |
| * The entries to set. |
| */ |
| public void setEntries(List entries) { |
| this.entries = entries; |
| } |
|
| /** |
| * @return Returns the id. |
| * |
| * @hibernate.id column="weblog_id" generator-class="native" |
| * unsaved-value="null" |
| */ |
| public Long getWeblogId() { |
| return weblogId; |
| } |
|
| /** |
| * @param id |
| * The id to set. |
| */ |
| public void setWeblogId(Long weblogId) { |
| this.weblogId = weblogId; |
| } |
|
| /** |
| * @return Returns the username. |
| * |
| * @hibernate.property column="username" |
| */ |
| public String getUsername() { |
| return username; |
| } |
|
| /** |
| * @param username |
| * The username to set. |
| */ |
| public void setUsername(String username) { |
| this.username = username; |
| } |
|
| /** |
| * @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 Weblog)) { |
| return false; |
| } |
| Weblog rhs = (Weblog) object; |
| return new EqualsBuilder().append(this.blogTitle, rhs.blogTitle) |
| .append(this.weblogId, rhs.weblogId).append(this.username, |
| rhs.username).append(this.entries, rhs.entries).append( |
| this.dateCreated, rhs.dateCreated).append(this.version, |
| rhs.version).isEquals(); |
| } |
|
| /** |
| * @see java.lang.Object#hashCode() |
| */ |
| public int hashCode() { |
| return new HashCodeBuilder(-1412256665, -696169811).append( |
| this.blogTitle).append(this.weblogId).append(this.username) |
| .append(this.entries).append(this.dateCreated).append( |
| this.version).toHashCode(); |
| } |
|
| /** |
| * @see java.lang.Object#toString() |
| */ |
| public String toString() { |
| return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| .append("weblogId", this.weblogId).append("version", |
| this.version).append("username", this.username).append( |
| "blogTitle", this.blogTitle).append("entries", |
| this.entries).append("dateCreated", this.dateCreated) |
| .toString(); |
| } |
| } |
|
|
| }] |