Closed June222 closed 8 months ago
@OneToMany Mapping 진행시에 cascade = CascadeType.ALL을 해줘야 삽입이 됨. 해결하는데 도움이 된 링크
@Table
class Steel {
...
@OneToMany(mappedBy = "steel", orphanRemoval = true, cascade = CascadeType.ALL)
private List<SteelLabel> labels = new ArrayList<SteelLabel>();
...
}
'일' 쪽 Table에는 insert가 잘 되나 '다' 쪽 Table에 인서트가 되지않음.
response는 잘 도착함.