mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Removed wildcard import
This commit is contained in:
parent
42e8cbcb75
commit
3edab52b70
1 changed files with 27 additions and 23 deletions
|
@ -15,12 +15,15 @@
|
||||||
*/
|
*/
|
||||||
package org.springframework.samples.petclinic.vet;
|
package org.springframework.samples.petclinic.vet;
|
||||||
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
import org.springframework.samples.petclinic.model.BaseEntity;
|
|
||||||
|
|
||||||
import javax.persistence.*;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
import org.springframework.samples.petclinic.model.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Models a {@link AvailableHour AvailableHour} for each {@link Vet Vet}
|
* Models a {@link AvailableHour AvailableHour} for each {@link Vet Vet}
|
||||||
|
@ -31,29 +34,30 @@ import java.time.LocalDateTime;
|
||||||
@Table(name = "available_hour")
|
@Table(name = "available_hour")
|
||||||
public class AvailableHour extends BaseEntity implements Serializable {
|
public class AvailableHour extends BaseEntity implements Serializable {
|
||||||
|
|
||||||
@Column(name = "time_date")
|
@Column(name = "time_date")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
|
@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
|
||||||
private LocalDateTime timeDate;
|
private LocalDateTime timeDate;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "vet_id")
|
@JoinColumn(name = "vet_id")
|
||||||
private Vet vet;
|
private Vet vet;
|
||||||
|
|
||||||
public AvailableHour() {}
|
public AvailableHour() {
|
||||||
|
}
|
||||||
|
|
||||||
public Vet getVet() {
|
public Vet getVet() {
|
||||||
return vet;
|
return vet;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVet(Vet vet) {
|
public void setVet(Vet vet) {
|
||||||
this.vet = vet;
|
this.vet = vet;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LocalDateTime getTimeDate() {
|
public LocalDateTime getTimeDate() {
|
||||||
return timeDate;
|
return timeDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTimeDate(LocalDateTime timeDate) {
|
public void setTimeDate(LocalDateTime timeDate) {
|
||||||
this.timeDate = timeDate;
|
this.timeDate = timeDate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue