Skip to content

Instantly share code, notes, and snippets.

@aarshtalati
Last active Mar 27, 2018
Embed
What would you like to do?
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