package wissolsoft.porada.webapp.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="vote")
public class Vote {

	@Id
	@GeneratedValue
	private long id;

	@ManyToOne
	private Law law;
}

@@ -206,16 +206,48 @@
 Table;%0A%0A
+import org.appfuse.model.User;%0A%0A
 @Entity%0A
@@ -291,14 +291,52 @@
  %7B%0A%0A
-%09@Id%0A%09
+    public enum Value %7B%0A%0A    %7D%0A%0A    @Id%0A    
 @Gen
@@ -347,17 +347,20 @@
 edValue%0A
-%09
+    
 private 
@@ -369,17 +369,20 @@
 ng id;%0A%0A
-%09
+    
 @ManyToO
@@ -388,9 +388,12 @@
 One%0A
-%09
+    
 priv
@@ -404,11 +404,508 @@
 Law law;
+%0A%0A    @ManyToOne%0A    private User user;%0A%0A    private Value value;%0A%0A    public long getId() %7B%0A        return id;%0A    %7D%0A%0A    public Law getLaw() %7B%0A        return law;%0A    %7D%0A%0A    public User getUser() %7B%0A        return user;%0A    %7D%0A%0A    public Value getValue() %7B%0A        return value;%0A    %7D%0A%0A    public void setLaw(Law law) %7B%0A        this.law = law;%0A    %7D%0A%0A    public void setUser(User user) %7B%0A        this.user = user;%0A    %7D%0A%0A    public void setValue(Value value) %7B%0A        this.value = value;%0A    %7D%0A%0A
 %0A%7D%0A

Add fields and accessors to Vote entity