Hibernate OneToMany java.lang.StackOverflowError

后端 未结 10 1037
傲寒
傲寒 2020-12-07 19:58

It\'s my first question here on stack, so please be gentle :D

I\'m trying to create hibernate OneToMany relationship. When I try to fetch some data from my DB, I\'m

10条回答
  •  孤街浪徒
    2020-12-07 20:51

    The only way it can throw an StackOverFlow is when your Team's League is accessed recursively....

    Team to League to Team to League

    I'm guessing there's some function trying to convert your objects into some other representation reflectively or recursively resulting in an infinite loop.

提交回复
热议问题