failed to lazily initialize a collection of role in ManyToMany relationship despite using JsonIgnore

后端 未结 1 1418
天涯浪人
天涯浪人 2020-12-20 07:41

I have two business objects having many too many relationships. I am using a REST service to call the DAO method given below and get a list of political indicators for a pol

相关标签:
1条回答
  • 2020-12-20 08:00

    You need to move the annotation to the getter method:

    @JsonIgnore
    public List <PolEvent> getEventList() {
        return eventList;
    }
    
    0 讨论(0)
提交回复
热议问题