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
- 1차원 DP
- 2차원 dp
- 99클럽
- @BeforeAll
- @BeforeEach
- @Builder
- @Entity
- @GeneratedValue
- @GenericGenerator
- @NoargsConstructor
- @Query
- @Table
- @Transactional
- Actions
- Amazon EFS
- amazon fsx
- Android Studio
- ANSI SQL
- api gateway 설계
- api gateway 필터
- ApplicationEvent
- assertThat
- async/await
- AVG
- AWS
- aws eks
- AWS 프리티어
- Azure
- bind
- bitnami kafka
Archives
- Today
- Total
목록영속성관리 (1)
기록
Hibernate "unsaved transient instance" 오류 해결 방법 : CascadeType.ALL
1. 오류 상황Spring Boot + JPA/Hibernate 환경에서 아래와 같은 오류를 만났다.org.springframework.dao.InvalidDataAccessApiUsageException:org.hibernate.TransientObjectException: object references an unsaved transient instance -save the transient instance before flushing: com.example.model.AnswerHistoryEntity이 오류는 영속화되지 않은(transient) 엔티티를 다른 엔티티와 함께 저장하려고 할 때 발생한다.예제 코드@Transactionalfun createQuizChallenge(req: Challen..
Web/Spring
2025. 3. 16. 16:04