22301138 | 5e9c35a | 2025-06-04 15:52:45 +0800 | [diff] [blame^] | 1 | package com.example.myproject.entity; |
| 2 | |
| 3 | import javax.persistence.*; |
| 4 | import java.util.Date; |
| 5 | |
| 6 | @Entity |
| 7 | @Table(name = "dynamic_likes") |
| 8 | public class DynamicLikes { |
| 9 | |
| 10 | @Id |
| 11 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| 12 | @Column(name = "like_id") |
| 13 | private Long likeId; |
| 14 | |
| 15 | @Column(name = "dynamic_id") |
| 16 | private Long dynamicId; |
| 17 | |
| 18 | @Column(name = "user_id") |
| 19 | private Long userId; |
| 20 | |
| 21 | @Column(name = "like_time") |
| 22 | private Date likeTime; |
| 23 | |
| 24 | // Getters and Setters |
| 25 | public Long getLikeId() { |
| 26 | return likeId; |
| 27 | } |
| 28 | |
| 29 | public void setLikeId(Long likeId) { |
| 30 | this.likeId = likeId; |
| 31 | } |
| 32 | |
| 33 | public Long getDynamicId() { |
| 34 | return dynamicId; |
| 35 | } |
| 36 | |
| 37 | public void setDynamicId(Long dynamicId) { |
| 38 | this.dynamicId = dynamicId; |
| 39 | } |
| 40 | |
| 41 | public Long getUserId() { |
| 42 | return userId; |
| 43 | } |
| 44 | |
| 45 | public void setUserId(Long userId) { |
| 46 | this.userId = userId; |
| 47 | } |
| 48 | |
| 49 | public Date getLikeTime() { |
| 50 | return likeTime; |
| 51 | } |
| 52 | |
| 53 | public void setLikeTime(Date likeTime) { |
| 54 | this.likeTime = likeTime; |
| 55 | } |
| 56 | } |