mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-14 13:51:12 +00:00
fixed issue in the 'createVisit' form
This commit is contained in:
parent
57c9043121
commit
07e535a75e
2 changed files with 12 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ import javax.validation.constraints.Size;
|
|||
|
||||
import org.hibernate.annotations.Type;
|
||||
import org.joda.time.DateTime;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* Simple JavaBean domain object representing a visit.
|
||||
|
|
@ -22,6 +23,7 @@ public class Visit extends BaseEntity {
|
|||
/** Holds value of property date. */
|
||||
@Column(name="visit_date")
|
||||
@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
|
||||
@DateTimeFormat(pattern="yyyy/MM/dd")
|
||||
private DateTime date;
|
||||
|
||||
/** Holds value of property description. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue