質問編集履歴

3

2018/11/20 04:29

投稿

mk222222
mk222222

スコア59

test CHANGED
File without changes
test CHANGED
@@ -70,6 +70,16 @@
70
70
 
71
71
 
72
72
 
73
- エラー内容
73
+ ログ見ると
74
74
 
75
- idsの不明な整数データ型:dao.entity.OrderPK;ネストされた例外はorg.hibernate.id.IdentifierGenerationExceptionです:idsの不明な整数データ型:dao.entity.OrderPK
75
+ select
76
+
77
+ nextval ('order_seq')
78
+
79
+ org.springframework.orm.jpa.JpaSystemException: Unknown integral data type for ids : dao.entity.OrderPK; nested exception is org.hibernate.id.IdentifierGenerationException: Unknown integral data type for ids : dao.entity.OrderPK
80
+
81
+
82
+
83
+ ってなってます。おそらくエンティティの複合主キーを別クラスに書いてる書き方を変えないといけないですよね。
84
+
85
+ ひぃ

2

21

2018/11/20 04:29

投稿

mk222222
mk222222

スコア59

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,12 @@
13
13
  ・アノテーションをorderPKのフィールドのみに記述
14
14
 
15
15
  ・アノテーションを両クラスのフィールドに記述
16
+
17
+
18
+
19
+ jpaでinsertしたくて、、これができないといちいちmybatisでinsert文を書かないといけないんです!
20
+
21
+ テーブルの項目多くてめんどくさいです!お願いします!
16
22
 
17
23
  ```java
18
24
 

1

2018/11/20 00:34

投稿

mk222222
mk222222

スコア59

test CHANGED
File without changes
test CHANGED
@@ -61,3 +61,9 @@
61
61
  private String orderNo;
62
62
 
63
63
  ```
64
+
65
+
66
+
67
+ エラー内容
68
+
69
+ idsの不明な整数データ型:dao.entity.OrderPK;ネストされた例外はorg.hibernate.id.IdentifierGenerationExceptionです:idsの不明な整数データ型:dao.entity.OrderPK