| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- svn 변경된 파일 추출
- svn load
- svn dump
- expected at least 1 bean which qualifies as autowire candidate
- svn 사용법
- 포스트그레스 설치
- Cannot prepare internal mirrorlist: No URLs in mirrorlist
- postgres install
- Oracle install
- mysql dml
- svn 특정 리비전 사이 추출
- apt-get update 오류
- svn
- ant
- xrdp
- Remmina
- taskkill
- Failed to download metadata for repo 'appstream'
- 프로젝트 네임변경 후 이클립스 로딩시 에러
- NEXUS
- svn update
- svn log
- Store password unencrypted
- grep
- docker oracle12c
- docker 폐쇄망
- WH question
- svn commit
- javax.servlet.GenericFilter
- VirtualBox
Archives
- Today
- Total
기억의 습작
Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements 본문
Software/JPA
Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements
뿌사리다 2021. 9. 16. 21:17오류메시지
Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements
해결방법
아마도 당신은 as-is 처럼 되어 있을 것입니다. to-be 처럼 List 나 Set 과 같이 리스트 형태로 받아야 합니다.
as-is:
@OneToMany(mappedBy = "lifeRecord", cascade = CascadeType.ALL, orphanRemoval = true)
private Weight weights;
to-be:
@OneToMany(mappedBy = "lifeRecord", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Weight> weights;
728x90
반응형
LIST