質問編集履歴

2

ymlとxmlの内容を追記。

2019/04/30 13:11

投稿

Zeiniku2424
Zeiniku2424

スコア8

test CHANGED
File without changes
test CHANGED
@@ -102,6 +102,186 @@
102
102
 
103
103
 
104
104
 
105
+ ```yml
106
+
107
+ spring:
108
+
109
+ datasource:
110
+
111
+ url: jdbc:mysql://localhost/assign
112
+
113
+ username: root
114
+
115
+ password:
116
+
117
+ driverClassName: com.mysql.cj.jdbc.Driver
118
+
119
+
120
+
121
+ doma:
122
+
123
+ dialect: mysql
124
+
125
+ sql-file-repository: no_cache
126
+
127
+ ```
128
+
129
+
130
+
131
+ ```xml
132
+
133
+ <?xml version="1.0" encoding="UTF-8"?>
134
+
135
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
136
+
137
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
138
+
139
+ <modelVersion>4.0.0</modelVersion>
140
+
141
+ <parent>
142
+
143
+ <groupId>org.springframework.boot</groupId>
144
+
145
+ <artifactId>spring-boot-starter-parent</artifactId>
146
+
147
+ <version>2.1.4.RELEASE</version>
148
+
149
+ <relativePath/> <!-- lookup parent from repository -->
150
+
151
+ </parent>
152
+
153
+ <groupId>com.uruk</groupId>
154
+
155
+ <artifactId>assign</artifactId>
156
+
157
+ <version>0.0.1-SNAPSHOT</version>
158
+
159
+ <name>assign</name>
160
+
161
+ <description>Demo project for Spring Boot</description>
162
+
163
+
164
+
165
+ <properties>
166
+
167
+ <java.version>1.8</java.version>
168
+
169
+ </properties>
170
+
171
+
172
+
173
+ <dependencies>
174
+
175
+ <dependency>
176
+
177
+ <groupId>org.springframework.boot</groupId>
178
+
179
+ <artifactId>spring-boot-starter-thymeleaf</artifactId>
180
+
181
+ </dependency>
182
+
183
+ <dependency>
184
+
185
+ <groupId>org.springframework.boot</groupId>
186
+
187
+ <artifactId>spring-boot-starter-web</artifactId>
188
+
189
+ </dependency>
190
+
191
+
192
+
193
+ <dependency>
194
+
195
+ <groupId>mysql</groupId>
196
+
197
+ <artifactId>mysql-connector-java</artifactId>
198
+
199
+ <scope>runtime</scope>
200
+
201
+ </dependency>
202
+
203
+ <dependency>
204
+
205
+ <groupId>org.seasar.doma.boot</groupId>
206
+
207
+ <artifactId>doma-spring-boot-starter</artifactId>
208
+
209
+ <version>1.1.1</version>
210
+
211
+ </dependency>
212
+
213
+ <dependency>
214
+
215
+ <groupId>org.springframework.boot</groupId>
216
+
217
+ <artifactId>spring-boot-starter-jdbc</artifactId>
218
+
219
+ <version>2.1.4.RELEASE</version>
220
+
221
+ </dependency>
222
+
223
+ <dependency>
224
+
225
+ <groupId>org.flywaydb</groupId>
226
+
227
+ <artifactId>flyway-core</artifactId>
228
+
229
+ </dependency>
230
+
231
+
232
+
233
+ <dependency>
234
+
235
+ <groupId>org.projectlombok</groupId>
236
+
237
+ <artifactId>lombok</artifactId>
238
+
239
+ <version>1.18.6</version>
240
+
241
+ <scope>provided</scope>
242
+
243
+ </dependency>
244
+
245
+
246
+
247
+ <dependency>
248
+
249
+ <groupId>org.springframework.boot</groupId>
250
+
251
+ <artifactId>spring-boot-starter-test</artifactId>
252
+
253
+ <scope>test</scope>
254
+
255
+ </dependency>
256
+
257
+ </dependencies>
258
+
259
+
260
+
261
+ <build>
262
+
263
+ <plugins>
264
+
265
+ <plugin>
266
+
267
+ <groupId>org.springframework.boot</groupId>
268
+
269
+ <artifactId>spring-boot-maven-plugin</artifactId>
270
+
271
+ </plugin>
272
+
273
+ </plugins>
274
+
275
+ </build>
276
+
277
+
278
+
279
+ </project>
280
+
281
+ ```
282
+
283
+
284
+
105
285
  ### 試したこと
106
286
 
107
287
  `WorkEntity`インスタンスの`id`にsetterで値を入力してinsertした場合、正常にテーブルに保存されていました。

1

試したことと疑問点を追加しました。

2019/04/30 13:11

投稿

Zeiniku2424
Zeiniku2424

スコア8

test CHANGED
File without changes
test CHANGED
@@ -99,3 +99,17 @@
99
99
  )
100
100
 
101
101
  ```
102
+
103
+
104
+
105
+ ### 試したこと
106
+
107
+ `WorkEntity`インスタンスの`id`にsetterで値を入力してinsertした場合、正常にテーブルに保存されていました。
108
+
109
+
110
+
111
+ ### 疑問点
112
+
113
+ エラーメッセージ中の`DBMS[standard]`とは何のことでしょうか?
114
+
115
+ MySQLを使っているので`DBMS[MySQL]`と表示されるのならわかるのですが...