-
Notifications
You must be signed in to change notification settings - Fork 0
/
Book.java
110 lines (82 loc) · 1.74 KB
/
Book.java
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package com.ppx.web_service.entity;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "book_Asyn")
public class Book implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "book_id")
private String id;
@Column(name = "book_img")
private String img;
@Column(name = "book_name")
private String name;
@Column(name = "book_star")
private Float star;
@Column(name = "book_commentCount")
private Integer commentCount;
@Column(name = "book_author")
private String author;
@Column(name = "book_publish")
private String publish;
//@Temporal(TemporalType.TIMESTAMP)
@Column(name = "book_date")
private String date;
@Column(name = "book_price")
private String price;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Float getStar() {
return star;
}
public void setStar(Float star) {
this.star = star;
}
public Integer getCommentCount() {
return commentCount;
}
public void setCommentCount(Integer commentCount) {
this.commentCount = commentCount;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getPublish() {
return publish;
}
public void setPublish(String publish) {
this.publish = publish;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
}