質問編集履歴

1

関連ソースの追加

2021/05/19 02:54

投稿

yutyut
yutyut

スコア1

test CHANGED
File without changes
test CHANGED
@@ -180,6 +180,78 @@
180
180
 
181
181
  ```
182
182
 
183
+ ```Java
184
+
185
+ package com.example.demo;
186
+
187
+
188
+
189
+ import java.io.Serializable;
190
+
191
+ import java.sql.Date;
192
+
193
+
194
+
195
+ import javax.persistence.Column;
196
+
197
+ import javax.persistence.Entity;
198
+
199
+ import javax.persistence.Id;
200
+
201
+
202
+
203
+ import lombok.Data;
204
+
205
+
206
+
207
+ @Data
208
+
209
+ @Entity
210
+
211
+ public class MainMenu implements Serializable{
212
+
213
+ @Id
214
+
215
+ @Column(name = "reg_no")
216
+
217
+ private int reg_no;
218
+
219
+
220
+
221
+ @Column(name = "rec_date")
222
+
223
+ private Date rec_date;
224
+
225
+
226
+
227
+ @Column(name = "amount")
228
+
229
+ private int amount;
230
+
231
+
232
+
233
+ @Column(name = "category")
234
+
235
+ private String category;
236
+
237
+
238
+
239
+ @Override
240
+
241
+ public String toString() {
242
+
243
+ return "MainMenu [reg_no=" + reg_no + ", rec_date=" + rec_date + ", amount=" + amount + ", category=" + category
244
+
245
+ + "]";
246
+
247
+ }
248
+
249
+ }
250
+
251
+
252
+
253
+ ```
254
+
183
255
 
184
256
 
185
257
  ### 試したこと