回答編集履歴

1

ソースコード修正

2018/07/28 04:56

投稿

mitsusawa
mitsusawa

スコア30

answer CHANGED
@@ -29,7 +29,7 @@
29
29
  @OneToMany(targetEntity = CWrap.class, cascade = CascadeType.ALL)
30
30
  @OrderBy
31
31
  private List<CWrap> cWrap;
32
- @ManyToOne
32
+ @ManyToOne(targetEntity = A.class)
33
33
  private A a;
34
34
 
35
35
  //Getter, Setter略
@@ -47,7 +47,7 @@
47
47
  @OneToMany(targetEntity = C.class, cascade = CascadeType.ALL)
48
48
  @OrderBy
49
49
  private List<C> c;
50
- @ManyToOne
50
+ @ManyToOne(targetEntity = B.class)
51
51
  private B b;
52
52
 
53
53
  //Getter, Setter略
@@ -62,7 +62,7 @@
62
62
  @Column(nullable = false, unique = true)
63
63
  @NotNull
64
64
  private Long id;
65
- @ManyToOne
65
+ @ManyToOne(targetEntity = CWrap.class)
66
66
  private CWrap cWrap;
67
67
 
68
68
  //Getter, Setter略