// Path: src/main/java/edu/ksu/canvas/attendance/model/MakeupModel.java
// public class MakeupModel {
// 
//     private Long makeupId;
// 
//     private Date dateOfClass;
//     private Date dateMadeUp;
//     private String projectDescription;
//     private Integer minutesMadeUp;
//     private boolean toBeDeletedFlag;
// 
// 
//     public MakeupModel() {
// 
//     }
// 
//     public MakeupModel(Long makeupId, Date dateOfClass, Date dateMadeUp, String projectDescription, Integer minutesMadeUp) {
//         this.makeupId = makeupId;
//         this.dateOfClass = dateOfClass;
//         this.dateMadeUp = dateMadeUp;
//         this.projectDescription = projectDescription;
//         this.minutesMadeUp = minutesMadeUp;
//     }
// 
// 
//     public Long getMakeupId() {
//         return makeupId;
//     }
// 
//     public void setMakeupId(Long makeupId) {
//         this.makeupId = makeupId;
//     }
// 
//     public Date getDateOfClass() {
//         return dateOfClass;
//     }
// 
//     public void setDateOfClass(Date dateOfClass) {
//         this.dateOfClass = dateOfClass;
//     }
// 
//     public Date getDateMadeUp() {
//         return dateMadeUp;
//     }
// 
//     public void setDateMadeUp(Date dateMadeUp) {
//         this.dateMadeUp = dateMadeUp;
//     }
// 
//     public String getProjectDescription() {
//         return projectDescription;
//     }
// 
//     public void setProjectDescription(String projectDescription) {
//         this.projectDescription = projectDescription;
//     }
// 
//     public Integer getMinutesMadeUp() {
//         return minutesMadeUp;
//     }
// 
//     public void setMinutesMadeUp(Integer minutesMadeUp) {
//         this.minutesMadeUp = minutesMadeUp;
//     }
// 
//     public boolean isToBeDeletedFlag() {
//         return toBeDeletedFlag;
//     }
// 
//     public void setToBeDeletedFlag(boolean toBeDeletedFlag) {
//         this.toBeDeletedFlag = toBeDeletedFlag;
//     }
// 
// 
//     @Override
//     public String toString() {
//         return "MakeupModel [makeupId=" + makeupId + ", dateOfClass=" + dateOfClass + ", dateMadeUp=" + dateMadeUp
//                 + ", projectDescription=" + projectDescription + ", minutesMadeUp=" + minutesMadeUp
//                 + ", toBeDeletedFlag=" + toBeDeletedFlag + "]";
//     }
// 
// }


import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import edu.ksu.canvas.attendance.model.MakeupModel;
package edu.ksu.canvas.attendance.form;




@Component
public class MakeupValidator implements Validator {
    
    public static final String MINIMUM_MINUTES_MADEUP_ERROR_CODE = "Min.makeupForm.entries.minutesMadeUp";
    public static final String REQUIRED_DATE_OF_CLASS_ERROR_CODE = "Required.makeupForm.entries.dateOfClass";
    public static final String MAXIMUM_PROJECT_DESC_ERROR_CODE = "Max.makeupForm.entries.projectDescription";


// Path: src/main/java/edu/ksu/canvas/attendance/model/MakeupModel.java
// public class MakeupModel {
// 
//     private Long makeupId;
// 
//     private Date dateOfClass;
//     private Date dateMadeUp;
//     private String projectDescription;
//     private Integer minutesMadeUp;
//     private boolean toBeDeletedFlag;
// 
// 
//     public MakeupModel() {
// 
//     }
// 
//     public MakeupModel(Long makeupId, Date dateOfClass, Date dateMadeUp, String projectDescription, Integer minutesMadeUp) {
//         this.makeupId = makeupId;
//         this.dateOfClass = dateOfClass;
//         this.dateMadeUp = dateMadeUp;
//         this.projectDescription = projectDescription;
//         this.minutesMadeUp = minutesMadeUp;
//     }
// 
// 
//     public Long getMakeupId() {
//         return makeupId;
//     }
// 
//     public void setMakeupId(Long makeupId) {
//         this.makeupId = makeupId;
//     }
// 
//     public Date getDateOfClass() {
//         return dateOfClass;
//     }
// 
//     public void setDateOfClass(Date dateOfClass) {
//         this.dateOfClass = dateOfClass;
//     }
// 
//     public Date getDateMadeUp() {
//         return dateMadeUp;
//     }
// 
//     public void setDateMadeUp(Date dateMadeUp) {
//         this.dateMadeUp = dateMadeUp;
//     }
// 
//     public String getProjectDescription() {
//         return projectDescription;
//     }
// 
//     public void setProjectDescription(String projectDescription) {
//         this.projectDescription = projectDescription;
//     }
// 
//     public Integer getMinutesMadeUp() {
//         return minutesMadeUp;
//     }
// 
//     public void setMinutesMadeUp(Integer minutesMadeUp) {
//         this.minutesMadeUp = minutesMadeUp;
//     }
// 
//     public boolean isToBeDeletedFlag() {
//         return toBeDeletedFlag;
//     }
// 
//     public void setToBeDeletedFlag(boolean toBeDeletedFlag) {
//         this.toBeDeletedFlag = toBeDeletedFlag;
//     }
// 
// 
//     @Override
//     public String toString() {
//         return "MakeupModel [makeupId=" + makeupId + ", dateOfClass=" + dateOfClass + ", dateMadeUp=" + dateMadeUp
//                 + ", projectDescription=" + projectDescription + ", minutesMadeUp=" + minutesMadeUp
//                 + ", toBeDeletedFlag=" + toBeDeletedFlag + "]";
//     }
// 
// }


// Path: src/main/java/edu/ksu/canvas/attendance/form/MakeupValidator.java
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import edu.ksu.canvas.attendance.model.MakeupModel;

package edu.ksu.canvas.attendance.form;




@Component
public class MakeupValidator implements Validator {
    
    public static final String MINIMUM_MINUTES_MADEUP_ERROR_CODE = "Min.makeupForm.entries.minutesMadeUp";
    public static final String REQUIRED_DATE_OF_CLASS_ERROR_CODE = "Required.makeupForm.entries.dateOfClass";
    public static final String MAXIMUM_PROJECT_DESC_ERROR_CODE = "Max.makeupForm.entries.projectDescription";


    @Override