@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true)
@Fetch(FetchMode.SUBSELECT)
@JoinColumn(name = "ORU_OAUTH_ID", nullable = false)
@OrderBy("ORU_ORDER ")
private List<RedirectedURLs> acceptedReturnUrls;
  • 在这段代码中,我想了解@Fetch(FetchMode.SUBSELECT)的作用吗?
  • orphanRemoval和CascadeType.DELETE有什么区别?
  • 最佳答案

  • 如果这
    link
    能帮你。
  • 用于CascadingType.DELETE和orphanRemoval



  • (级联的删除和删除是同义词)

    here

    10-08 16:13