| package com.example.myproject.entity; |
| import javax.persistence.*; |
| @Table(name = "friend_relation") |
| public class FriendRelation { |
| @GeneratedValue(strategy = GenerationType.IDENTITY) |
| @Column(name = "relation_id") |
| @Column(name = "user_id") |
| @Column(name = "friend_id") |
| private Long friendId; // 好友ID |
| @Column(name = "create_time") |
| private Date createTime; // 好友关系创建时间 |
| public Long getRelationId() { |
| public void setRelationId(Long relationId) { |
| this.relationId = relationId; |
| public Long getUserId() { |
| public void setUserId(Long userId) { |
| public Long getFriendId() { |
| public void setFriendId(Long friendId) { |
| this.friendId = friendId; |
| public Date getCreateTime() { |
| public void setCreateTime(Date createTime) { |
| this.createTime = createTime; |