/*
 * Copyright (c) 2014 Personal-Health-Monitoring-System
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.cse3310.phms.model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

@Table(name = "User")
public class User extends Model {

    @Column(name = "UserName")
    private String username;
    @Column(name = "HashedPassword")
    private String hashedPassword;
    @Column(name = "PersonalInfo")
    private PersonalInfo personalInfo;

    public User() {
        super();
    }

    public User(String username, String hashedPassword) {
        this.username = username;
        this.hashedPassword = hashedPassword;
    }

    public String getUsername() {
        return username;
    }

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

    public String getHashedPassword() {
        return hashedPassword;
    }

    public User setHashedPassword(String hashedPassword) {
        this.hashedPassword = hashedPassword;
        return this;
    }

    public PersonalInfo getPersonalInfo() {
        return personalInfo;
    }

    public User setPersonalInfo(PersonalInfo personalInfo) {
        this.personalInfo = personalInfo;
        return this;
    }
}

@@ -1037,658 +1037,1462 @@
     
-public User() %7B%0A        super();%0A    %7D%0A%0A    public User(String username, String hashedPassword) %7B%0A        this.username = username;%0A        this.hashedPassword = hashedPassword;%0A    %7D%0A%0A    public String getUsername() %7B%0A        return username;%0A    %7D%0A%0A    public User setUsername(String username) %7B%0A        this.username = username;%0A        return this;%0A    %7D%0A%0A    public String getHashedPassword() %7B%0A        return hashedPassword;%0A    %7D%0A%0A    public User setHashedPassword(String hashedPassword) %7B%0A        this.hashedPassword = hashedPassword;%0A        return this;%0A    %7D%0A%0A    public PersonalInfo getPersonalInfo() %7B%0A        return personalInfo;%0A    %7D%0A
+/**%0A     * Instantiates a new User.%0A     */%0A    public User() %7B%0A        super();%0A    %7D%0A%0A    /**%0A     * Instantiates a new User.%0A     *%0A     * @param username the username%0A     * @param hashedPassword the hashed password%0A     */%0A    public User(String username, String hashedPassword) %7B%0A        this.username = username;%0A        this.hashedPassword = hashedPassword;%0A    %7D%0A%0A    /**%0A     * Gets username.%0A     *%0A     * @return the username%0A     */%0A    public String getUsername() %7B%0A        return username;%0A    %7D%0A%0A    /**%0A     * Sets username.%0A     *%0A     * @param username the username%0A     * @return the username%0A     */%0A    public User setUsername(String username) %7B%0A        this.username = username;%0A        return this;%0A    %7D%0A%0A    /**%0A     * Gets hashed password.%0A     *%0A     * @return the hashed password%0A     */%0A    public String getHashedPassword() %7B%0A        return hashedPassword;%0A    %7D%0A%0A    /**%0A     * Sets hashed password.%0A     *%0A     * @param hashedPassword the hashed password%0A     * @return the hashed password%0A     */%0A    public User setHashedPassword(String hashedPassword) %7B%0A        this.hashedPassword = hashedPassword;%0A        return this;%0A    %7D%0A%0A    /**%0A     * Gets personal info.%0A     *%0A     * @return the personal info%0A     */%0A    public PersonalInfo getPersonalInfo() %7B%0A        return personalInfo;%0A    %7D%0A%0A    /**%0A     * Sets personal info.%0A     *%0A     * @param personalInfo the personal info%0A     * @return the personal info%0A     */
 %0A   

add javadoc to User class