How to Fetch @OneToMany and @ManyToMany Entities
问题 my issue is very related to the following: Why am I getting a Hibernate LazyInitializationException in this Spring MVC web application when the data displays correctly? I have the following properties on a particular entity: @OneToMany(fetch = FetchType.EAGER, cascade = {CascadeType.REMOVE}) @JoinColumn(referencedColumnName = "id", name = "ID_FORMAT_FILE") private List<ColumnFormat> columnList; @ManyToMany(fetch = FetchType.EAGER) @JoinTable(name = "FILEFORMAT_ORIGINATOR", joinColumns =