반응형
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 |
Tags
- chart.js
- Jenkins
- AWS CI/CD 구축하기
- codedeploy
- Spring
- openlens
- COALESCE
- Airflow
- VPN
- IntelliJ
- codepipeline
- Kafka
- PostgreSQL
- codebuild
- Flux
- Spring Error
- bootstrap
- chartjs
- 도커
- kubeflow
- aws
- codedeploy error
- SQL
- aws cicd
- Python
- redis
- docker
- java bigdecimal
- node
- JavaScript
Archives
- Today
- Total
Small Asteroid Blog
[JPA]No results returned by the Query error in PostgreSQL 본문
728x90
JPA 에서 repository 에서 query 문에 update를 사용하는데
아래 어노테이션이 없으면 다음과 같은 에러가 발생한다.
Modifying 어노테이션을 추가해주면 된다.
@Modifying
내가 작성한 코드
@Modifying
@Query(value = "update schema.dbname set date = to_date(date,'DD Mon YYYY') where site='news' and date not like '%-%'",nativeQuery = true)
void updateDate();
728x90
반응형