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
- mapper annotationo
- spring JPA DB multi Connection
- spring mapper annotation
- 도커 컨테이너 로그
- spring mapper
- JPA DB 다중 Connection
- JAVA Exception 종류
- @Builder @NoArgsConstructor
- spring JPA DB Connection
- CrudRepository update
- spring DB Connection
- spring repository
- vuecomponent
- Data Annotation
- 자바버그수정
- Vue
- Spring JPA Specification
- doker logs tail
- docker 로그
- Transactions Propagation Option
- repository annotation
- AllArgsConstructor
- 도커 로그 확인
- Spring
- JPA DB Connection 다중
- NoArgsConstructor
- vueslot
- spring @mapper
- 도커 logs
- JpaRepository update
Archives
- Today
- Total
목록CrudRepository update (1)
개발을 잘하고 싶은 개발자
[Spring JPA] JpaRepository update업데이트 하고 싶지만 save
JpaRepository를 사용하면서 findAllById, save, saveAndFlush 등등 편리하게 사용해오다가 수정 Update 업데이트 기능을 개발할 일이 있어 검색해 보았다. 나는 update(S entity) 라는 메서드를 지원해주지 않을까 라는 기대감에 u.. p... 까지 타이핑도 해보았지만 없.었.다. save()를 사용해야 한다는 걸 알고 UserDto id name birth UserDto user = new UserDto(); user.setId("153"); user.setName("sofia"); UserDto save(UserDto user); 이렇게 사용했다가 birth가 날아갔다ㅠ birth에 값을 넣어주지 않았다고 birth를 null로 update 한 것이다... ..
Backend/spring
2021. 8. 2. 20:22