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

質問編集履歴

3

質問を追加しています・

2019/11/23 07:58

投稿

ai9376451
ai9376451

スコア15

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,5 @@
1
+ `時間がDBに登録できません。コードを変えたりしてみましたが、うまくいかないです。
1
- `時間がDBに登録できません。コードを変えたりてみましたが、まくいないです。![イメージ説明](33e978cf7a50c8008573996f4681685c.png)
2
+ どのようすると登録できますでうか。![イメージ説明](33e978cf7a50c8008573996f4681685c.png)
2
3
  ``````ここに言語![イメージ説明](f14ecc0f5e850887923a5f8a4890517e.png)
3
4
  <td>開始時刻</td>
4
5
  <td>

2

追加しています。

2019/11/23 07:58

投稿

ai9376451
ai9376451

スコア15

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- 時間がDBに登録できません。コードを変えたりしてみましたが、うまくいかないです。![イメージ説明](33e978cf7a50c8008573996f4681685c.png)
1
+ `時間がDBに登録できません。コードを変えたりしてみましたが、うまくいかないです。![イメージ説明](33e978cf7a50c8008573996f4681685c.png)
2
2
  ``````ここに言語![イメージ説明](f14ecc0f5e850887923a5f8a4890517e.png)
3
3
  <td>開始時刻</td>
4
4
  <td>
@@ -53,4 +53,14 @@
53
53
  There was an unexpected error (type=Internal Server Error, status=500).
54
54
  ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: (conn=1032) Column 'sleepstarttime' cannot be null ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: INSERT INTO nurserydiary (childrenid,name,sleepstarttime,sleependtime,mood,poop,meal,phase,communication,daybookwriter,writedate) VALUES(?,?,?,?,?,?,?,?,?, ?,?) ### Cause: java.sql.SQLIntegrityConstraintViolationException: (conn=1032) Column 'sleepstarttime' cannot be null ; (conn=1032) Column 'sleepstarttime' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: (conn=1032) Column 'sleepstarttime' cannot be null
55
55
  `
56
- `````
56
+ `````
57
+
58
+
59
+ ```ここに言語を入力
60
+ <insert id="nissiinput">
61
+ INSERT INTO nurserydiary
62
+ (childrenid,name,sleepstarttime,sleependtime,mood,poop,meal,phase,communication,daybookwriter,writedate)
63
+ VALUES(#{childrenid},#{name},#{startTime1},#{endTime1},#{mood},#{poop},#{meal},#{phase},#{communication},
64
+ #{daybookwriter},#{theDate})
65
+ </insert>
66
+ ```

1

エラー内容を追加してます

2019/11/23 07:14

投稿

ai9376451
ai9376451

スコア15

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,5 @@
1
- 時間がDBに登録できません。コードを変えたりしてみましたが、うまくいかないです。```ここに言語を入力
1
+ 時間がDBに登録できません。コードを変えたりしてみましたが、うまくいかないです。![イメージ説明](33e978cf7a50c8008573996f4681685c.png)
2
- ``````ここに言語
2
+ ``````ここに言語![イメージ説明](f14ecc0f5e850887923a5f8a4890517e.png)
3
3
  <td>開始時刻</td>
4
4
  <td>
5
5
  <span th:text="${insertMogipuroForm.startTime}"></span>時
@@ -49,5 +49,8 @@
49
49
  }
50
50
  ```
51
51
  ```
52
-
53
- ```
52
+ <エラー>Sat Nov 23 15:32:38 JST 2019
53
+ There was an unexpected error (type=Internal Server Error, status=500).
54
+ ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: (conn=1032) Column 'sleepstarttime' cannot be null ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: INSERT INTO nurserydiary (childrenid,name,sleepstarttime,sleependtime,mood,poop,meal,phase,communication,daybookwriter,writedate) VALUES(?,?,?,?,?,?,?,?,?, ?,?) ### Cause: java.sql.SQLIntegrityConstraintViolationException: (conn=1032) Column 'sleepstarttime' cannot be null ; (conn=1032) Column 'sleepstarttime' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: (conn=1032) Column 'sleepstarttime' cannot be null
55
+ `
56
+ `````