JPA specification allows up to two simultaneous eager fetches. But sometimes when we really need to this – we are stuck. One way to achieve this is to use hibernate extensions. We could do something like this: [cc lang=”java” highlight=”2″] @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = “keys”) @Fetch(value […]
