teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

追記修正

2021/01/26 02:42

投稿

K_3578
K_3578

スコア1282

title CHANGED
File without changes
body CHANGED
@@ -293,7 +293,7 @@
293
293
  public void setId(Integer id) {
294
294
  this.id = id;
295
295
  }
296
- (以降、カラム毎に上記と同じ処理を繰り返すため省略)
296
+ <!--(以降、カラム毎に上記と同じ処理を繰り返すため省略)-->
297
297
  }
298
298
  ```
299
299
  ### 補足情報(FW/ツールのバージョンなど)

1

追記

2021/01/26 02:42

投稿

K_3578
K_3578

スコア1282

title CHANGED
File without changes
body CHANGED
@@ -160,7 +160,141 @@
160
160
  rd.forward(request, response);
161
161
  }
162
162
  }
163
+ ```
163
164
 
165
+ models.Trucks.java
166
+ ```Java
167
+ package models;
168
+ import java.sql.Date;
169
+ import java.sql.Time;
170
+
171
+ import javax.persistence.Column;
172
+ import javax.persistence.Entity;
173
+ import javax.persistence.GeneratedValue;
174
+ import javax.persistence.GenerationType;
175
+ import javax.persistence.Id;
176
+ import javax.persistence.NamedQueries;
177
+ import javax.persistence.NamedQuery;
178
+ import javax.persistence.Table;
179
+
180
+ @Table(name = "trucks")
181
+ @NamedQueries({
182
+ @NamedQuery(
183
+ name = "getAllTrucks",
184
+ query = "SELECT t FROM Trucks AS t"
185
+ ),
186
+ @NamedQuery(
187
+ name = "getTrucksCount",
188
+ query = "SELECT COUNT(t) FROM Trucks AS t"
189
+ ),
190
+ })
191
+ @Entity
192
+ public class Trucks{
193
+ @Id
194
+ @Column(name = "id")
195
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
196
+ private Integer id;
197
+
198
+ @Column(name = "task_date", nullable = true)
199
+ private Date task_date;
200
+
201
+ @Column(name = "task_time", nullable = true)
202
+ private Time task_time;
203
+
204
+ @Column(name = "office_name", nullable = true)
205
+ private String office_name;
206
+
207
+ @Column(name = "truck_code", nullable = true)
208
+ private String truck_code;
209
+
210
+ @Column(name = "stack_area", nullable = true)
211
+ private String stack_area;
212
+
213
+ @Column(name = "wholesale_area", nullable = true)
214
+ private String wholesale_area;
215
+
216
+ @Column(name = "truck_type", nullable = true)
217
+ private String truck_type;
218
+
219
+ @Column(name = "wa_time", nullable = true)
220
+ private String wa_time;
221
+
222
+
223
+ @Column(name = "sa_time", nullable = true)
224
+ private String sa_time;
225
+
226
+ @Column(name = "e_stack_area", nullable = true)
227
+ private String e_stack_area;
228
+
229
+ @Column(name = "m_wholesale_area", nullable = true)
230
+ private String m_wholesale_area;
231
+
232
+ @Column(name = "mw_time", nullable = true)
233
+ private String mw_time;
234
+
235
+
236
+ @Column(name = "es_time", nullable = true)
237
+ private String es_time;
238
+
239
+ @Column(name = "mw_text", nullable = true)
240
+ private String mw_text;
241
+
242
+ @Column(name = "mw_select", nullable = true)
243
+ private String mw_select;
244
+
245
+ @Column(name = "sa_text", nullable = true)
246
+ private String sa_text;
247
+
248
+ @Column(name = "sa_select", nullable = true)
249
+ private String sa_select;
250
+
251
+ @Column(name = "wa_text", nullable = true)
252
+ private String wa_text;
253
+
254
+ @Column(name = "wa_select", nullable = true)
255
+ private String wa_select;
256
+
257
+ @Column(name = "es_text", nullable = true)
258
+ private String es_text;
259
+
260
+ @Column(name = "es_select", nullable = true)
261
+ private String es_select;
262
+
263
+ @Column(name = "wa_time2", nullable = true)
264
+ private String wa_time2;
265
+
266
+ @Column(name = "sa_time2", nullable = true)
267
+ private String sa_time2;
268
+
269
+ @Column(name = "stack_area2", nullable = true)
270
+ private String stack_area2;
271
+
272
+ @Column(name = "wholesale_area2", nullable = true)
273
+ private String wholesale_area2;
274
+
275
+ @Column(name = "sa_text2", nullable = true)
276
+ private String sa_text2;
277
+
278
+ @Column(name = "sa_select2", nullable = true)
279
+ private String sa_select2;
280
+
281
+ @Column(name = "wa_text2", nullable = true)
282
+ private String wa_text2;
283
+
284
+ @Column(name = "wa_select2", nullable = true)
285
+ private String wa_select2;
286
+
287
+
288
+
289
+ public Integer getId() {
290
+ return id;
291
+ }
292
+
293
+ public void setId(Integer id) {
294
+ this.id = id;
295
+ }
296
+ (以降、カラム毎に上記と同じ処理を繰り返すため省略)
297
+ }
164
298
  ```
165
299
  ### 補足情報(FW/ツールのバージョンなど)
166
300