Skip to content

Instantly share code, notes, and snippets.

@aarshtalati
Last active March 27, 2018 12:08
Show Gist options
  • Save aarshtalati/041bff637107b35b79873da1360dbc6c to your computer and use it in GitHub Desktop.
Save aarshtalati/041bff637107b35b79873da1360dbc6c to your computer and use it in GitHub Desktop.
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