[Hibernate] Found two representations of same collection: XXXX.xxxx Exception 질문

57 views
Skip to first unread message

GIL

unread,
May 29, 2014, 9:56:53 PM5/29/14
to ks...@googlegroups.com
안녕하세요.
Spring + Hibernate 프로젝트를 진행 중입니다.

실 서버에서 Exception 로그에 하기와 같이 발생 했는데 원인이 무엇인지 잘 모르겠네요;

  • org.hibernate.HibernateException: Found two representations of same collection: SomeClass.SomeAssociation
     at org.hibernate.engine.Collections.processReachableCollection(Collections.java:175)
     at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
     at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
     at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
     at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
     at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
     at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
     at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
     at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
     at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
        ...  ...
    

제 코드에서는 영속 객체를 Merge 하는 과정인데... 문제 재현도 안되고
특정 상황에서 'someAssociation' 리스트가 꼬이게 되는거 같은데, 우선 저 에러의 정확한 뜻도 잘 모르겠습니다.
혹시 해결를 위한 짐작이 가는 부분이 있나요?
Reply all
Reply to author
Forward
0 new messages