TripCok / TripCok_server

1 stars 0 forks source link

[ERROR] Member 생성 후 Group 생성 시 오류 발생 #17

Open lsiwh37249 opened 2 hours ago

lsiwh37249 commented 2 hours ago

오류 코드 :


Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: 
org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : 
com.tripcok.tripcokserver.domain.group.entity.GroupMember.member -> com.tripcok.tripcokserver.domain.member.entity.Member] with root cause
'''
lsiwh37249 commented 2 hours ago

GroupMember 엔티티가 Member와 연관되어 있는데, 해당 Member 엔티티가 데이터베이스에 저장되어 있지 않거나 영속화되지 않은 상태에서 GroupMember를 저장하려고 했기 때문에 발생