package com.example.beer.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: Project
 *
 */
@Entity

public class Project implements Serializable {

	
	private static final long serialVersionUID = 1L;

	public Project() {
		super();
	}
   
}

@@ -55,16 +55,65 @@
 izable;%0A
+import java.util.HashSet;%0Aimport java.util.Set;%0A%0A
 import j
@@ -133,73 +133,164 @@
 nce.
-*;%0A%0A/**%0A * 
 Entity
- implementation class for Entity: Project%0A *%0A */
+;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Transient;%0A%0A
 %0A@En
@@ -294,17 +294,16 @@
 @Entity%0A
-%0A
 public c
@@ -346,10 +346,8 @@
  %7B%0A%0A
-%09%0A
 %09pri
@@ -392,49 +392,1068 @@
 D = 
-1L;%0A%0A%09public Project() %7B%0A%09%09super();%0A%09%7D%0A   
+3217480333410956170L;%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.AUTO)%0A%09private int id;%0A%0A%09private String name;%0A%09%0A%09@Transient%0A%09private Set%3CTask%3E tasks = new HashSet%3CTask%3E();%0A%09@Transient%0A%09private Set%3CUser%3E users = new HashSet%3CUser%3E();%0A%09%0A%0A%09public Project(String name, User%5B%5D users) %7B%0A%09%09this.name = name;%0A%0A%09%09for (User user : users) %7B%0A%09%09%09this.users.add(user);%0A%09%09%7D%0A%09%7D%0A%0A%09boolean addTask(Task task) %7B%0A%09%09if (!tasks.contains(task)) %7B%0A%09%09%09task.setProjectId(id);%0A%09%09%09tasks.add(task);%0A%09%09%09return true;%0A%09%09%7D%0A%09%09%0A%09%09return false;%0A%09%7D%0A%09%0A%09void removeTask(Task task) %7B%0A%09%09task.setProjectId(-1);%0A%09%09tasks.remove(task);%0A%09%7D%0A%0A%09Set%3CTask%3E getTasks() %7B%0A%09%09return tasks;%0A%09%7D%0A%09%0A%09boolean addUser(User user) %7B%0A%09%09if (!users.contains(user)) %7B%0A%09%09%09users.add(user);%0A%09%09%09return true;%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%09%0A%09void removeUser(User user) %7B%0A%09%09users.remove(user);%0A%09%7D%0A%0A%09Set%3CUser%3E getUsers() %7B%0A%09%09return users;%0A%09%7D%0A%0A%09public int getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(int id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%0A%09public void setName(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A
 %0A%7D%0A

Update Project.java