package org.domain.zzzzzz2.entity;

// Generated 01.03.2010 19:13:35 by Hibernate Tools 3.2.6.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * Productlines generated by hbm2java
 */
@Entity
@Table(name = "PRODUCTLINES", schema = "PUBLIC")
public class Productlines implements java.io.Serializable {

	private String productline;
	private String textdescription;
	private String htmldescription;
	private Set<Products> productses = new HashSet<Products>(0);

	public Productlines() {
	}

	public Productlines(String productline) {
		this.productline = productline;
	}

	public Productlines(String productline, String textdescription,
			String htmldescription, Set<Products> productses) {
		this.productline = productline;
		this.textdescription = textdescription;
		this.htmldescription = htmldescription;
		this.productses = productses;
	}

	@Id
	@Column(name = "PRODUCTLINE", unique = true, nullable = false, length = 50)
	@NotNull
	@Length(max = 50)
	public String getProductline() {
		return this.productline;
	}

	public void setProductline(String productline) {
		this.productline = productline;
	}

	@Column(name = "TEXTDESCRIPTION", length = 4000)
	@Length(max = 4000)
	public String getTextdescription() {
		return this.textdescription;
	}

	public void setTextdescription(String textdescription) {
		this.textdescription = textdescription;
	}

	@Column(name = "HTMLDESCRIPTION", length = 4000)
	@Length(max = 4000)
	public String getHtmldescription() {
		return this.htmldescription;
	}

	public void setHtmldescription(String htmldescription) {
		this.htmldescription = htmldescription;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "productlines")
	public Set<Products> getProductses() {
		return this.productses;
	}

	public void setProductses(Set<Products> productses) {
		this.productses = productses;
	}

}
