| | |
| | | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.time.Instant; |
| | | |
| | | @Entity |
| | | @Table(name = "customer_favorite_consultant") |
| | |
| | | |
| | | @Column(name = "customer_id") |
| | | private Long customerId; |
| | | |
| | | @Column(name = "view_time") |
| | | private Instant viewTime; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | this.customerId = customId; |
| | | } |
| | | |
| | | public Instant getViewTime() { |
| | | return viewTime; |
| | | } |
| | | |
| | | public void setViewTime(Instant viewTime) { |
| | | this.viewTime = viewTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "CustomerFavoriteConsultant{" + |
| | | "id=" + id + |
| | | ", consultant=" + consultant + |
| | | ", customerId=" + customerId + |
| | | ", viewTime=" + viewTime + |
| | | '}'; |
| | | } |
| | | } |