質問編集履歴

1

書式の改善

2022/06/07 13:59

投稿

kuro0607
kuro0607

スコア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