| package com.example.myproject.entity; |
| |
| import javax.persistence.*; |
| import java.util.Date; |
| |
| @Entity |
| @Table(name = "follow") |
| public class UserFollow { |
| |
| @Id |
| @GeneratedValue(strategy = GenerationType.IDENTITY) |
| @Column(name = "record_id") |
| private Long recordId; |
| |
| @Column(name = "follower_id") |
| private Long followerId; |
| |
| @Column(name = "followed_id") |
| private Long followedId; |
| |
| @Column(name = "follow_time") |
| private Date followTime; |
| |
| // Getters and Setters |
| public Long getId() { |
| return recordId; |
| } |
| |
| public void setId(Long recordId) { |
| this.recordId = recordId; |
| } |
| |
| public Long getFollowerId() { |
| return followerId; |
| } |
| |
| public void setFollowerId(Long followerId) { |
| this.followerId = followerId; |
| } |
| |
| public Long getFollowedId() { |
| return followedId; |
| } |
| |
| public void setFollowedId(Long followedId) { |
| this.followedId = followedId; |
| } |
| |
| public Date getFollowTime() { |
| return followTime; |
| } |
| |
| public void setFollowTime(Date followTime) { |
| this.followTime = followTime; |
| } |
| } |