Skip to content

Instantly share code, notes, and snippets.

@mohamed-gara
Created July 12, 2018 22:55
Show Gist options
  • Save mohamed-gara/4e74c2183f1be8c29fca5b44b76582a8 to your computer and use it in GitHub Desktop.
Save mohamed-gara/4e74c2183f1be8c29fca5b44b76582a8 to your computer and use it in GitHub Desktop.
Basic attribute is not lazy loaded
@Test
public void basicAttributeIsNotLazyLoaded() {
Person person = entityManager.find(Person.class, PERSON_ID);
assertThat(person).hasEagerlyLoaded("comment");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment