Last active
March 27, 2018 12:08
-
-
Save aarshtalati/041bff637107b35b79873da1360dbc6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.gatech.epidemics.model; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
/** | |
* @author atalati | |
*/ | |
@Entity(name = "user") | |
public class User { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Integer id; | |
private String username; | |
private String password; | |
private Boolean active; | |
// default constructor | |
public User() { } | |
// parameterized constructor | |
public User(String username, String password, Boolean active) { | |
// ... | |
} | |
// getters and setters | |
// toString() override | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment