package jp.co.headwaters.webappos.model;

import java.util.Date;
import java.util.List;

public class Category extends AbstractEntity {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column category.id
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	private Integer id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column category.category_name
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	private String categoryName;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column category.created_date
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	private Date createdDate;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column category.updated_date
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	private Date updatedDate;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column category.id
	 * @return  the value of category.id
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column category.id
	 * @param id  the value for category.id
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column category.category_name
	 * @return  the value of category.category_name
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public String getCategoryName() {
		return categoryName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column category.category_name
	 * @param categoryName  the value for category.category_name
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column category.created_date
	 * @return  the value of category.created_date
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public Date getCreatedDate() {
		return createdDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column category.created_date
	 * @param createdDate  the value for category.created_date
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column category.updated_date
	 * @return  the value of category.updated_date
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public Date getUpdatedDate() {
		return updatedDate;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column category.updated_date
	 * @param updatedDate  the value for category.updated_date
	 * @mbggenerated  Wed Sep 11 14:31:07 JST 2013
	 */
	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	// --------------------------------------------------------------------------
	private List<CategoryRelation> categoryRelations;
	private List<CategoryDetail> categoryDetails;

	public List<CategoryRelation> getCategoryRelations() {
		return categoryRelations;
	}

	public void setCategoryRelations(List<CategoryRelation> categoryRelations) {
		this.categoryRelations = categoryRelations;
	}

	public List<CategoryDetail> getCategoryDetails() {
		return categoryDetails;
	}

	public void setCategoryDetails(List<CategoryDetail> categoryDetails) {
		this.categoryDetails = categoryDetails;
	}
}