All pastes #339798 Raw Edit

Something

public text v1 · immutable
·published 2007-02-04 09:39 UTC
rendered paste body
package mypackage.model;
// Generated Feb 3, 2007 9:44:30 PM by Hibernate Tools 3.2.0.beta8

import java.util.Date;
import java.util.HashSet;

import org.hibernate.mapping.Collection;
import org.hibernate.mapping.List;
import org.hibernate.mapping.Set;

/**
 * Articles generated by hbm2java
 */
public class Articles implements java.io.Serializable {

	// Fields

	private int id;

	private String subject;

	private String body;

	private Date createdAt;

	private Integer categoryId;

	private Integer userId;

	private Set comments;

	// Constructors

	/** default constructor */
	public Articles() {
	}

	/** minimal constructor */
	public Articles(int id) {
		this.id = id;
	}

	/** full constructor */
	public Articles(int id, String subject, String body, Date createdAt,
			Integer categoryId, Integer userId, Set comments) {
		this.id = id;
		this.subject = subject;
		this.body = body;
		this.createdAt = createdAt;
		this.categoryId = categoryId;
		this.userId = userId;
		this.comments = comments;
	}

	// Property accessors
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getBody() {
		return this.body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Integer getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Set getComments() {
		return comments;
	}

	public void setComments(Set comments) {
		this.comments = comments;
	}



}