Guest User

Untitled

a guest
Aug 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import org.springframework.format.annotation.DateTimeFormat;
  2. import javax.validation.constraints.NotNull;
  3. import java.util.Date;
  4.  
  5. public class HourTracker {
  6. @NotNull(message = "start time cannot be null")
  7. @DateTimeFormat(pattern = "hh:mma")
  8. private Date startTime;
  9. @NotNull(message = "end time cannot be null")
  10. @DateTimeFormat(pattern = "hh:mma")
  11. private Date endTime;
  12.  
  13. //getters and setters
  14. }
Add Comment
Please, Sign In to add comment