Annotation Interface EagerFetch


@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface EagerFetch
Annotation to be placed on a member within a Entity-annotated class to indicate that this should be eager-fetched when querying. This is a replacement for fetch=EAGER on the JPA annotations, because of limitations in Hibernate since 2013 that prevent a FetchGraph from overriding fetch=EAGER annotated relations (which means that a user who only wants particular relations expanded must pay a time penalty for the EAGER-annotated relations to be retrieved too)