1. Hibernate Criteria returns children multiple times with FetchType.EAGER stackoverflow.comI have an
|
2. JPA and eclipselink - Overriding FetchType.Eager stackoverflow.comI have a class where a few members have annotation:
In the specific part of my program, these load far too many data. Unfortunately, I can't change these annotations as ... |
3. Does work @ManyToMany(fetch = FetchType.EAGER)? forum.hibernate.orgI have annotated a relation as follow Code: @ManyToMany(fetch = FetchType.EAGER) @MapKeyColumn(name = "E_TPSISDK_K_ORDINAMENTO") @JoinTable(name = "V_DCM_TYPE_CLASS", joinColumns = { @JoinColumn(name = "K_DOCUMENTO_AZIENDALE", referencedColumnName = "K_DOCUMENTO_AZIENDALE"), @JoinColumn(name = "K_SOTTO_APPLICAZIONE", referencedColumnName = "K_SOTTO_APPLICAZIONE") }, inverseJoinColumns ... |
4. Filter on entity association mapping vs FetchType.EAGER forum.hibernate.org@org.hibernate.annotations.FilterDefs(@org.hibernate.annotations.FilterDef(name = "childFilter")) @Entity public class Parent { @Id @GeneratedValue private Long id; @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER) @org.hibernate.annotations.Fetch(org.hibernate.annotations.FetchMode.SUBSELECT) @org.hibernate.annotations.Filter(name = "childFilter", condition = "id = 2") private Set |