// Path: src/main/java/edu/ksu/canvas/attendance/enums/Status.java
// public enum Status {
//     PRESENT, TARDY, ABSENT, EXCUSED, NA
// }


import org.hibernate.annotations.Check;
import edu.ksu.canvas.attendance.enums.Status;
import javax.persistence.*;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
package edu.ksu.canvas.attendance.entity;





@Entity
@Table(name = "attendance")
// Path: src/main/java/edu/ksu/canvas/attendance/enums/Status.java
// public enum Status {
//     PRESENT, TARDY, ABSENT, EXCUSED, NA
// }


// Path: src/main/java/edu/ksu/canvas/attendance/entity/Attendance.java
import org.hibernate.annotations.Check;
import edu.ksu.canvas.attendance.enums.Status;
import javax.persistence.*;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

package edu.ksu.canvas.attendance.entity;





@Entity
@Table(name = "attendance")
@Check(constraints = "minutes_missed >= 0 and status IN ('PRESENT', 'TARDY', 'ABSENT', 'EXCUSED', 'NA')")