-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vet.java
28 lines (24 loc) · 850 Bytes
/
Vet.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.springsource.petclinic.domain;
import com.springsource.petclinic.reference.Specialty;
import java.util.Calendar;
import javax.persistence.Enumerated;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class Vet extends AbstractPerson {
@NotNull
@Past
@Temporal(TemporalType.TIMESTAMP)
@DateTimeFormat(style = "M-")
private Calendar employedSince;
@Enumerated
private Specialty specialty;
}