質問編集履歴
1
FoodsParamクラスの追加とご指摘いただきたコンストラクタの追加をしました。そして、テストを動かすことができました。ありがとうございます。
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,6 +30,27 @@
|
|
30
30
|
found: String,int
|
31
31
|
reason: actual and formal argument lists differ in length
|
32
32
|
```
|
33
|
+
```java
|
34
|
+
@Data
|
35
|
+
@Entity
|
36
|
+
public class FoodsParam{
|
37
|
+
@Id
|
38
|
+
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
39
|
+
private Integer id;
|
40
|
+
@Column(nullable = false)
|
41
|
+
private String name;
|
42
|
+
private String type;
|
43
|
+
private Integer price;
|
44
|
+
|
45
|
+
FoodsParam(){
|
46
|
+
}
|
47
|
+
|
48
|
+
public FoodsParam(String type, Integer price){
|
49
|
+
this.type = type;
|
50
|
+
this.price = price;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
```
|
33
54
|
|
34
55
|
かなりいろいろ調べてみたのですが、うまくいかなかったため質問させていただきます。
|
35
56
|
ご回答のほどよろしくお願いいたします。
|