상세 컨텐츠

본문 제목

org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing

본문

상황

  "message": 
  "org.hibernate.TransientPropertyValueException: 
  object references an unsaved transient instance 
  - save the transient instance before flushing 
  : com.exciting.vvue.memory.model.PlaceMemory.place 
  -> com.exciting.vvue.place.model.Place; 
  nested exception is java.lang.IllegalStateException: 
  org.hibernate.TransientPropertyValueException: 
  object references an unsaved transient instance -
  save the transient instance before flushing 
  : com.exciting.vvue.memory.model.PlaceMemory.place 
  -> com.exciting.vvue.place.model.Place"

 

 

 


 

발생 원인

PlaceMemory를 저장하기에 앞서 Place 가 저장되어 있어야 한다.

 

 

 


 

해결방안

 

 

Place를 미리 저장하고, PlaceMemory의 연관관계로 주입해준다.

 

 

 

 

 

 

관련글 더보기

댓글 영역