答案点赞 实体类的抽象基类,定义基本属性
| 16 | * |
| 17 | */ |
| 18 | @Getter |
| 19 | @Setter |
| 20 | @MappedSuperclass |
| 21 | public class AnswerLikeEntity implements Serializable{ |
| 22 | @Serial |
| 23 | private static final long serialVersionUID = -1386787741210428896L; |
| 24 | |
| 25 | /** ID 格式(答案Id_用户Id)**/ |
| 26 | @Id @Column(length=40) |
| 27 | protected String id; |
| 28 | /** 答案点赞的用户名称 **/ |
| 29 | @Column(length=30) |
| 30 | protected String userName; |
| 31 | |
| 32 | /** 发布答案的用户名称 **/ |
| 33 | @Column(length=30) |
| 34 | protected String postUserName; |
| 35 | /** 加入时间 **/ |
| 36 | |
| 37 | @Column(columnDefinition = "DATETIME") |
| 38 | protected LocalDateTime addtime = LocalDateTime.now(); |
| 39 | |
| 40 | /** 问题Id **/ |
| 41 | protected Long questionId; |
| 42 | |
| 43 | /** 问题标题 **/ |
| 44 | @Transient |
| 45 | protected String questionTitle; |
| 46 | |
| 47 | /** 答案Id **/ |
| 48 | protected Long answerId; |
| 49 | /** 答案内容摘要 **/ |
| 50 | @Transient |
| 51 | protected String summary; |
| 52 | |
| 53 | /** 点赞Id **/ |
| 54 | @Column(length=36) |
| 55 | protected String likeId; |
| 56 | |
| 57 | |
| 58 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…