What casuses Spring Boot Fail-safe cleanup (collections) to occur

前端 未结 5 2401
梦谈多话
梦谈多话 2021-02-20 14:35

I have a Java Spring Boot application with the following entities related to the below exception

SProduct

@Entity
@Table(
        name =         


        
5条回答
  •  礼貌的吻别
    2021-02-20 14:45

    Can you try with @Fetch(value = SELECT)?

    @OneToMany(fetch = FetchType.EAGER, mappedBy = "mainProduct", cascade = CascadeType.ALL)
    @Fetch(value=FetchMode.SELECT)
    private Set fbts;
    

提交回复
热议问题