package net.davidvoid.thor.lightning.entity;

/**
 * Created by david on 3/20/16.
 */
public class User {
    private long id = -1;
    private String name = "";
    private String password = "";

    public String getPassword() {
        return password;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getId() {
        return id;
    }

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

@@ -586,11 +586,83 @@
 d;%0A    %7D
+%0A%0A    public boolean is_valid_id() %7B%0A        return this.id != -1;%0A    %7D
 %0A%7D%0A

add method to check for id's validity