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 |
Tags
- AWS
- React
- Jenkins
- axios
- MongoDB
- fastapi
- javascript
- Java
- EC2
- nodejs
- macbook
- github
- python
- Express
- js
- ngrok
- 500
- Spring
- Github Actions
- springboot
- docker
- Troubleshooting
- linux
- MUI
- webhook
- AWS EC2
- RDS
- TypeScript
- deploy
- error
Archives
- Today
- Total
728x90
반응형
SMALL
목록SQL (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