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;

import org.appfuse.model.User;

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

    public enum Value {

    }

    @Id
    @GeneratedValue
    private long id;

    @ManyToOne
    private Law law;

    @ManyToOne
    private User user;

    private Value value;

    public long getId() {
        return id;
    }

    public Law getLaw() {
        return law;
    }

    public User getUser() {
        return user;
    }

    public Value getValue() {
        return value;
    }

    public void setLaw(Law law) {
        this.law = law;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void setValue(Value value) {
        this.value = value;
    }


}

@@ -307,24 +307,136 @@
 num Value %7B%0A
+        /** %D0%A3%D1%82%D1%80%D0%B8%D0%BC%D0%B0%D0%B2%D1%81%D1%8F */%0A        ABSTAIN,%0A%0A        /** %D0%97%D0%B0 */%0A        FOR,%0A%0A        /** %D0%9F%D1%80%D0%BE%D1%82%D0%B8  */%0A        AGAINST
 %0A    %7D%0A%0A    

Add values to vote enum