package de.unistuttgart.iste.rss.bugminer.model.entities;

import java.util.ArrayList;
import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

import de.unistuttgart.iste.rss.bugminer.model.BaseEntity;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
@Entity
public class User extends BaseEntity {
	@OneToMany
	private Collection<Classification> classifications;

	public User() {
		classifications = new ArrayList<>();
	}

	public Collection<Classification> getClassifications() {
		return classifications;
	}

	public void setClassifications(Collection<Classification> classifications) {
		this.classifications = classifications;
	}
}

@@ -110,16 +110,49 @@
 ction;%0A%0A
+import javax.persistence.Column;%0A
 import j
@@ -172,24 +172,24 @@
 nce.Entity;%0A
-
 import javax
@@ -453,16 +453,48 @@
 ntity %7B%0A
+%09@Column%0A%09private String name;%0A%0A
 %09@OneToM
@@ -777,16 +777,16 @@
 ions) %7B%0A
-
 %09%09this.c
@@ -821,11 +821,117 @@
 ions;%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%7D%0A

Add name property to user