| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- javax.servlet.GenericFilter
- docker 폐쇄망
- svn 특정 리비전 사이 추출
- taskkill
- 포스트그레스 설치
- WH question
- svn update
- docker oracle12c
- 프로젝트 네임변경 후 이클립스 로딩시 에러
- mysql dml
- svn commit
- postgres install
- svn log
- VirtualBox
- Store password unencrypted
- expected at least 1 bean which qualifies as autowire candidate
- grep
- Failed to download metadata for repo 'appstream'
- svn 변경된 파일 추출
- Cannot prepare internal mirrorlist: No URLs in mirrorlist
- apt-get update 오류
- svn 사용법
- svn load
- Remmina
- svn
- Oracle install
- xrdp
- svn dump
- NEXUS
- ant
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