Skip to content

Instantly share code, notes, and snippets.

@bh5k
Created April 25, 2016 19:46
Show Gist options
  • Save bh5k/accd5d04de014ea10041c1d19d8b13eb to your computer and use it in GitHub Desktop.
Save bh5k/accd5d04de014ea10041c1d19d8b13eb to your computer and use it in GitHub Desktop.
package com.pluralsight.model;
import org.hibernate.validator.constraints.Range;
public class Goal {
@Range(min = 1, max = 120)
private int minutes;
public int getMinutes() {
return minutes;
}
public void setMinutes(int minutes) {
this.minutes = minutes;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment