@@ -33,6 +33,8 @@ public class Photo implements Serializable {
33
33
private Integer userId ;
34
34
35
35
private List <Comment > comments ;
36
+
37
+ private Double voteValue ;
36
38
37
39
public Integer getId () {
38
40
return id ;
@@ -74,6 +76,15 @@ public Integer getUserId() {
74
76
public void setUserId (Integer userId ) {
75
77
this .userId = userId ;
76
78
}
79
+
80
+
81
+ public Double getVoteValue () {
82
+ return voteValue ;
83
+ }
84
+
85
+ public void setVoteValue (Double voteValue ) {
86
+ this .voteValue = voteValue ;
87
+ }
77
88
78
89
@ Override
79
90
public int hashCode () {
@@ -113,7 +124,31 @@ public Photo() {
113
124
// TODO Auto-generated constructor stub
114
125
}
115
126
116
- public Photo (String name , String photoUrl , Integer belongId , Integer userId ) {
127
+ public Photo (Integer id , String name , String photoUrl , Integer belongId ,
128
+ Integer userId , List <Comment > comments , Double voteValue ) {
129
+ super ();
130
+ this .id = id ;
131
+ this .name = name ;
132
+ this .photoUrl = photoUrl ;
133
+ this .belongId = belongId ;
134
+ this .userId = userId ;
135
+ this .comments = comments ;
136
+ this .voteValue = voteValue ;
137
+ }
138
+
139
+ public Photo (Integer id , String name , String photoUrl , Integer belongId ,
140
+ Integer userId , List <Comment > comments ) {
141
+ super ();
142
+ this .id = id ;
143
+ this .name = name ;
144
+ this .photoUrl = photoUrl ;
145
+ this .belongId = belongId ;
146
+ this .userId = userId ;
147
+ this .comments = comments ;
148
+ }
149
+
150
+ public Photo (String name , String photoUrl , Integer belongId ,
151
+ Integer userId ) {
117
152
super ();
118
153
this .name = name ;
119
154
this .photoUrl = photoUrl ;
@@ -125,9 +160,11 @@ public Photo(String name, String photoUrl, Integer belongId, Integer userId) {
125
160
public String toString () {
126
161
return "Photo [id=" + id + ", name=" + name + ", photoUrl=" + photoUrl
127
162
+ ", belongId=" + belongId + ", userId=" + userId
128
- + ", comments=" + comments + "]" ;
163
+ + ", comments=" + comments + ", voteValue=" + voteValue + " ]" ;
129
164
}
130
165
166
+
167
+
131
168
132
169
133
170
0 commit comments