package com.healtrav.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

@Entity
public class User {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    @NotNull
    private String username;

    @NotNull
    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;
    }

}

@@ -213,16 +213,69 @@
 tNull;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnore;%0A%0A
 @Entity%0A
@@ -419,16 +419,32 @@
 rname;%0A%0A
+    @JsonIgnore%0A
     @Not

add @JsonIgnore