| package com.example.myproject.entity; |
| |
| import javax.persistence.*; |
| import java.util.Date; |
| |
| @Entity |
| @Table(name = "dynamic_likes") |
| public class DynamicLikes { |
| |
| @Id |
| @GeneratedValue(strategy = GenerationType.IDENTITY) |
| @Column(name = "like_id") |
| private Long likeId; |
| |
| @Column(name = "dynamic_id") |
| private Long dynamicId; |
| |
| @Column(name = "user_id") |
| private Long userId; |
| |
| @Column(name = "like_time") |
| private Date likeTime; |
| |
| // Getters and Setters |
| public Long getLikeId() { |
| return likeId; |
| } |
| |
| public void setLikeId(Long likeId) { |
| this.likeId = likeId; |
| } |
| |
| public Long getDynamicId() { |
| return dynamicId; |
| } |
| |
| public void setDynamicId(Long dynamicId) { |
| this.dynamicId = dynamicId; |
| } |
| |
| public Long getUserId() { |
| return userId; |
| } |
| |
| public void setUserId(Long userId) { |
| this.userId = userId; |
| } |
| |
| public Date getLikeTime() { |
| return likeTime; |
| } |
| |
| public void setLikeTime(Date likeTime) { |
| this.likeTime = likeTime; |
| } |
| } |