package com.example.beer.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

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

public class User implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1460111118024195065L;

	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;

	@Column(unique=true)
	private String name;
	
	private String salt;
	private String saltPassHash;
	
	private String fullName;
	
	private String email;
	
	private Set<Task> tasks = new HashSet<Task>();
	
	private static int saltLength = 32;

	public int getId() {
		return id;
	}

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

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getSaltPassHash() {
		return saltPassHash;
	}

	public void setSaltPassHash(String saltPassHash) {
		this.saltPassHash = saltPassHash;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Set<Task> getTasks() {
		return tasks;
	}

	public void setTasks(Set<Task> tasks) {
		this.tasks = tasks;
	}

	public static int getSaltLength() {
		return saltLength;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public User() {
		super();
	}
   
}

@@ -383,16 +383,12 @@
 ype.
-IDENTITY
+AUTO
 )%0A%09p
@@ -552,24 +552,37 @@
 ng email;%0A%09%0A
+%09@ManyToMany%0A
 %09private Set
@@ -615,24 +615,24 @@
 %3CTask%3E();%0A%09%0A
-
 %09private sta
@@ -657,16 +657,149 @@
  = 32;%0A%0A
+%09public User(String name, String username, String email) %7B%0A%09%09this.fullName = name;%0A%09%09this.name = username;%0A%09%09this.email = email;%0A%09%7D%0A%0A
 %09public 
@@ -1743,40 +1743,8 @@
 ;%0A%09%7D
-%0A%0A%09public User() %7B%0A%09%09super();%0A%09%7D
 %0A   

Update User.java