250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- fastapi
- nodejs
- webhook
- Jenkins
- javascript
- Express
- macbook
- axios
- github
- docker
- deploy
- AWS EC2
- linux
- EC2
- AWS
- RDS
- error
- ngrok
- Troubleshooting
- 500
- Spring
- python
- TypeScript
- MongoDB
- MUI
- springboot
- React
- Java
- js
- Github Actions
Archives
- Today
- Total
728x90
반응형
SMALL
목록contains (1)
BEAT A SHOTGUN
[SPRING] FOR 를 이용해 SQL문으로는 닿을 수 없는 ENTITY 내부 검색하기
🤷♂️ SITUATION POST ENTITY 는 EMOTION ENTITY 를 여러개 갖고 있다. 그래서 List 이 Post 에 있다. // Post.java public class Post{ ... @ManyToMany(fetch = FetchType.EAGER) @JoinColumn(name = "emotionId", referencedColumnName = "emotionId") private List emotion; } List 는 SQL 에서 인식하지 못한다. 🤔 What I Want Search! word 를 입력하면 title, contents 그리고 emotion 에 있는 emotionword 에 word 가 포함된 post 를 검색하고 싶다! sql 문을 작성하자 SELECT * F..
PROJECT
2022. 10. 27. 02:56
728x90
반응형
LIST