-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFriend.java
More file actions
68 lines (50 loc) · 1.56 KB
/
Friend.java
File metadata and controls
68 lines (50 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package org.example.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Table(name = "tb_friend")
public class Friend {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String blogaddress;
private String blogname;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
private String pictureaddress;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getBlogaddress() {
return blogaddress;
}
public void setBlogaddress(String blogaddress) {
this.blogaddress = blogaddress == null ? null : blogaddress.trim();
}
public String getBlogname() {
return blogname;
}
public void setBlogname(String blogname) {
this.blogname = blogname == null ? null : blogname.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getPictureaddress() {
return pictureaddress;
}
public void setPictureaddress(String pictureaddress) {
this.pictureaddress = pictureaddress == null ? null : pictureaddress.trim();
}
}