JPA 순환참조

dev_archive_v·2026년 4월 9일

스프링 부트

목록 보기
20/22

에러

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Document nesting depth (1001) exceeds the maximum allowed (1000, from `StreamWriteConstraints.getMaxNestingDepth()`) (through reference chain: com.example.FifthSpring.dto.PlayListDto["likeList"]->java.util.ArrayList[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLi>org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]->com.example.FifthSpring.model.PlayListArticle["likeList"]->org.hibernate.collection.spi.PersistentBag[0]->com.example.FifthSpring.model.PostLike["playListArticle"]-

에러 분석

PostLike->PlaylistArticle ->PostLike->PlaylistArticle ->... 이런 순환참조 패턴이 반복되고 있었다.

원인

PostLikePlaylistArticle은 양방향 매핑이 설정되어있다.JPA에서는 이러한 양방향 참조가 설정되어 있을 경우 서버에서 클라이언트PostLike가 참조하는 PlaylistArticle의 정보도 함께 보낸다. 양방향 매핑이기 때문에 PlaylistArticle이 참조하는 PostLike의 정보도 함께 보낸다. 이렇게 순환참조가 반복되는 것이다.

해결 방법

  1. @JsonManagedReference@JsonBackReference을 양방향에 적용
    public class PostLike {
     @ManyToOne(fetch = FetchType.EAGER) 
    @JsonBackReference
    @JoinColumn(name="play_list_article_id")
    private PlayListArticle playListArticle;
    } 
   
    public class PlayListArticle {
     @OneToMany(mappedBy = "playListArticle",orphanRemoval = true,cascade = CascadeType.ALL,fetch = FetchType.EAGER)
    @JsonManagedReference
    private List<PostLike> likeList;
   }

  1. DTO 객체를 사용해서 Entity를 직접적으로 사용하지 않기

0개의 댓글