package com.javahonk.bean;

// Generated May 22, 2014 10:03:19 PM by Hibernate Tools 4.0.0

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.ManyToMany;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Project generated by hbm2java
 */
@Entity
@Table(name = "project", catalog = "JavaHonk")
public class Project implements java.io.Serializable {

    private Integer projectId;
    private String projectName;
    private Set<Employee> employees = new HashSet<Employee>();

    public Project() {
    }

    public Project(String projectName) {
	this.projectName = projectName;
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "Project_Id", unique = true, nullable = false)
    public Integer getProjectId() {
	return this.projectId;
    }

    public void setProjectId(Integer projectId) {
	this.projectId = projectId;
    }

    @Column(name = "Project_Name", length = 50)
    public String getProjectName() {
	return this.projectName;
    }

    public void setProjectName(String projectName) {
	this.projectName = projectName;
    }

    @ManyToMany(mappedBy="projects")
    public Set<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(Set<Employee> employees) {
        this.employees = employees;
    }
    
    

}
