質問編集履歴
2
テーブル情報を追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -246,6 +246,40 @@
|
|
246
246
|
|
247
247
|
|
248
248
|
|
249
|
+
・テーブル構造
|
250
|
+
|
251
|
+
```Postgres
|
252
|
+
|
253
|
+
/* ユーザーテーブル */
|
254
|
+
|
255
|
+
CREATE TABLE users (
|
256
|
+
|
257
|
+
uid VARCHAR NOT NULL -- ユーザーID
|
258
|
+
|
259
|
+
, photo_url VARCHAR -- 写真URL
|
260
|
+
|
261
|
+
, PRIMARY KEY (uid)
|
262
|
+
|
263
|
+
);
|
264
|
+
|
265
|
+
/* ユーザーテーブル */
|
266
|
+
|
267
|
+
CREATE TABLE user_licenses (
|
268
|
+
|
269
|
+
license_id SERIAL NOT NULL -- ライセンスID
|
270
|
+
|
271
|
+
, uid VARCHAR NOT NULL -- ユーザーID
|
272
|
+
|
273
|
+
, authenticated BOOLEAN -- 認証済み
|
274
|
+
|
275
|
+
, PRIMARY KEY (license_id)
|
276
|
+
|
277
|
+
, FOREIGN KEY (uid) REFERENCES users(uid)
|
278
|
+
|
279
|
+
);
|
280
|
+
|
281
|
+
```
|
282
|
+
|
249
283
|
|
250
284
|
|
251
285
|
大変基礎的なことで申し訳ございませんが、
|
1
エラーメッセージが誤っていたので修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -146,7 +146,7 @@
|
|
146
146
|
|
147
147
|
|
148
148
|
|
149
|
-
import
|
149
|
+
import ***;
|
150
150
|
|
151
151
|
|
152
152
|
|
@@ -182,9 +182,9 @@
|
|
182
182
|
|
183
183
|
|
184
184
|
|
185
|
-
import
|
185
|
+
import ***.bean.User;
|
186
|
-
|
186
|
+
|
187
|
-
import
|
187
|
+
import ***.repository.UserRepository;
|
188
188
|
|
189
189
|
|
190
190
|
|
@@ -226,103 +226,21 @@
|
|
226
226
|
|
227
227
|
```ERROR
|
228
228
|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
at s
|
234
|
-
|
235
|
-
at s
|
236
|
-
|
237
|
-
at
|
238
|
-
|
239
|
-
at org.
|
240
|
-
|
241
|
-
at org.
|
242
|
-
|
243
|
-
at org.
|
244
|
-
|
245
|
-
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:114) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
246
|
-
|
247
|
-
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
248
|
-
|
249
|
-
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
250
|
-
|
251
|
-
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
252
|
-
|
253
|
-
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
254
|
-
|
255
|
-
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
256
|
-
|
257
|
-
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
258
|
-
|
259
|
-
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
260
|
-
|
261
|
-
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
262
|
-
|
263
|
-
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
264
|
-
|
265
|
-
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
266
|
-
|
267
|
-
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
268
|
-
|
269
|
-
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:861) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
270
|
-
|
271
|
-
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:888) [hibernate-core-5.2.17.Final.jar:5.2.17.Final]
|
272
|
-
|
273
|
-
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
274
|
-
|
275
|
-
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
276
|
-
|
277
|
-
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
278
|
-
|
279
|
-
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
280
|
-
|
281
|
-
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
282
|
-
|
283
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1767) [spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
284
|
-
|
285
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1704) [spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
286
|
-
|
287
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:581) [spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
288
|
-
|
289
|
-
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) [spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
290
|
-
|
291
|
-
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) [spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
292
|
-
|
293
|
-
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
294
|
-
|
295
|
-
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) [spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
296
|
-
|
297
|
-
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
298
|
-
|
299
|
-
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
300
|
-
|
301
|
-
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
302
|
-
|
303
|
-
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
|
304
|
-
|
305
|
-
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
|
306
|
-
|
307
|
-
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
|
308
|
-
|
309
|
-
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
|
310
|
-
|
311
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
|
312
|
-
|
313
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
|
314
|
-
|
315
|
-
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) ~[spring-boot-2.0.3.RELEASE.jar:2.0.3.RELEASE]
|
316
|
-
|
317
|
-
at ***(ProjectThaiBackendApplication.java:10) ~[classes/:na]
|
318
|
-
|
319
|
-
Caused by: java.sql.SQLFeatureNotSupportedException: org.postgresql.jdbc.PgConnection.createClob() メソッドはまだ実装されていません。
|
320
|
-
|
321
|
-
at org.postgresql.Driver.notImplemented(Driver.java:683) ~[postgresql-42.2.2.jar:42.2.2]
|
322
|
-
|
323
|
-
at org.postgresql.jdbc.PgConnection.createClob(PgConnection.java:1252) ~[postgresql-42.2.2.jar:42.2.2]
|
324
|
-
|
325
|
-
... 44 common frames omitted
|
229
|
+
org.postgresql.util.PSQLException: ERROR: 列licenses0_.user_uidは存在しません
|
230
|
+
|
231
|
+
ポジション: 324
|
232
|
+
|
233
|
+
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) ~[postgresql-42.2.2.jar:42.2.2]
|
234
|
+
|
235
|
+
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) ~[postgresql-42.2.2.jar:42.2.2]
|
236
|
+
|
237
|
+
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306) ~[postgresql-42.2.2.jar:42.2.2]
|
238
|
+
|
239
|
+
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) ~[postgresql-42.2.2.jar:42.2.2]
|
240
|
+
|
241
|
+
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) ~[postgresql-42.2.2.jar:42.2.2]
|
242
|
+
|
243
|
+
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155) ~[postgresql-42.2.2.jar:42.2.2]
|
326
244
|
|
327
245
|
```
|
328
246
|
|