package data.model;

import javax.persistence.*;

/**
 * Created by Peter Mösenthin.
 */
@Entity
@Table(name="rbl_user")
public class User {

    @Id
    @GeneratedValue
    @Column(name="user_id")
    private int id;

    @Column(name="name")
    private String name;

    @Column(name="email")
    private String email;

    //----------------------------------------------------------------------------------------------
    //                                      GETTER & SETTER
    //----------------------------------------------------------------------------------------------
    
    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 getEmail() {
        return email;
    }

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

@@ -316,16 +316,75 @@
 email;%0A%0A
+    @Column(name=%22password%22)%0A    private String password;%0A%0A
     //--
@@ -1018,11 +1018,165 @@
 l;%0A    %7D
+%0A%0A    public String getPassword() %7B%0A        return password;%0A    %7D%0A%0A    public void setPassword(String password) %7B%0A        this.password = password;%0A    %7D
 %0A%7D%0A

add password to user model