package xyz.acmer.entity.user;

/**
 * Created by hypo on 16-2-2.
 */
public class User implements IUser{
    private Integer userId;
    private String userName;
    private String nickName;
    private String email;
    private String password;
    private Integer balance;


    public User(String userName, String email, String password) {
        this.userName = userName;
        this.email = email;
        this.password = password;
    }

    public User(String userName, String nickName, String email, String password) {
        this.userName = userName;
        this.nickName = nickName;
        this.email = email;
        this.password = password;
    }

    public Integer getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

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

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getBalance() {
        return balance;
    }

    public void setBalance(Integer balance) {
        this.balance = balance;
    }
}

@@ -25,16 +25,50 @@
 .user;%0A%0A
+import javax.persistence.Entity;%0A%0A
 /**%0A * C
@@ -97,16 +97,24 @@
 -2.%0A */%0A
+@Entity%0A
 public c
@@ -126,25 +126,8 @@
 User
- implements IUser
 %7B%0A  

update User