質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,6 +80,37 @@
|
|
80
80
|
</body>
|
81
81
|
</html>
|
82
82
|
```
|
83
|
+
entity
|
84
|
+
```java
|
85
|
+
|
86
|
+
import lombok.Data;
|
87
|
+
|
88
|
+
@Data
|
89
|
+
public class product {
|
90
|
+
|
91
|
+
private final String name;
|
92
|
+
private final String categoryName;
|
93
|
+
private final String quantity;
|
94
|
+
}
|
95
|
+
```
|
96
|
+
form
|
97
|
+
```java
|
98
|
+
|
99
|
+
import java.util.List;
|
100
|
+
|
101
|
+
import com.example.jrOrder.entity.category;
|
102
|
+
import com.example.jrOrder.entity.product;
|
103
|
+
|
104
|
+
import lombok.Data;
|
105
|
+
|
106
|
+
@Data
|
107
|
+
public class orderForm {
|
108
|
+
private int CategoryCd;
|
109
|
+
private List<category> categoryList;
|
110
|
+
private List<product> productList;
|
111
|
+
}
|
112
|
+
```
|
113
|
+
|
83
114
|
|
84
115
|
|
85
116
|
|
@@ -137,7 +168,6 @@
|
|
137
168
|
return "order";
|
138
169
|
}
|
139
170
|
}
|
140
|
-
|
141
171
|
```
|
142
172
|
Service
|
143
173
|
```java
|
@@ -168,7 +198,6 @@
|
|
168
198
|
return productRepository.getCategoryList();
|
169
199
|
}
|
170
200
|
}
|
171
|
-
|
172
201
|
```
|
173
202
|
|
174
203
|
Repository
|
@@ -190,7 +219,6 @@
|
|
190
219
|
public List<category> getCategoryList();
|
191
220
|
|
192
221
|
}
|
193
|
-
|
194
222
|
```
|
195
223
|
|
196
224
|
sql
|