質問編集履歴
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
前提としてBookテーブル、Genreテーブルの紐づけは成功しています。
|
5
5
|
(HTMLにてジャンル名で検索結果を出力できます)
|
6
6
|
|
7
|
-
###
|
7
|
+
### 該当のテーブル
|
8
8
|
|
9
9
|
■ Book
|
10
10
|
COLUMN_NAME|DATA_TYPE|COLUMN_ID|
|
@@ -39,7 +39,7 @@
|
|
39
39
|
- "CATEGORY_NAME" IS NOT NULL
|
40
40
|
- PRIMARY KEY("CATEGORY_ID")
|
41
41
|
|
42
|
-
###
|
42
|
+
### 該当のソースコード
|
43
43
|
■ Book :Entity1
|
44
44
|
```Java
|
45
45
|
package jp.co.sss.book.entity;
|
@@ -220,7 +220,7 @@
|
|
220
220
|
}
|
221
221
|
```
|
222
222
|
|
223
|
-
|
223
|
+
コンソール画面のエラー
|
224
224
|
---------------------------------------------------------------------------------------------
|
225
225
|
Error creating bean with name '**entityManagerFactory**' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.MappingException: **Unable to find column with logical name: cateogryId** in org.hibernate.mapping.**Table(category) and its related supertables and secondary tables**
|
226
226
|
|