package se.kits.gakusei.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Pär Svedberg on 2016-11-29.
 */

@Entity
@Table(name = "users")
public class User implements Serializable{

    private static final long serialVersionUID = 6433155328293181762L;

    @Id
    private Long id;
    private String username;
    private String password;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

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

@@ -25,16 +25,69 @@
 model;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnore;%0A%0A
 import j
@@ -453,24 +453,41 @@
 ng username;
+%0A%0A    @JsonIgnore
 %0A    private

Exclude passwords JSONIgnore