From 90ee768f456549867c03dbcb80be394f32997f5f Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Thu, 31 Oct 2013 17:30:32 +0100 Subject: [PATCH] HHH-8285 Initial JPA 2.1 entity graph support (EntityManager.find()) --- .../EntityGraphLoadPlanBuilderTest.java | 46 ++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/graphs/EntityGraphLoadPlanBuilderTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/graphs/EntityGraphLoadPlanBuilderTest.java index 0ea055b24c..e31dd9854d 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/graphs/EntityGraphLoadPlanBuilderTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/graphs/EntityGraphLoadPlanBuilderTest.java @@ -100,7 +100,28 @@ public class EntityGraphLoadPlanBuilderTest extends BaseEntityManagerFunctionalT @Id String name; } - + /** + * EntityGraph(1): + * + * Cat + * + * LoadPlan: + * + * Cat + * + * --------------------- + * + * EntityGraph(2): + * + * Cat + * owner -- Person + * + * LoadPlan: + * + * Cat + * owner -- Person + * address --- Address + */ @Test public void testBasicFetchLoadPlanBuilding() { EntityManager em = getOrCreateEntityManager(); @@ -143,6 +164,29 @@ public class EntityGraphLoadPlanBuilderTest extends BaseEntityManagerFunctionalT em.close(); } + /** + * EntityGraph(1): + * + * Cat + * + * LoadPlan: + * + * Cat + * + * --------------------- + * + * EntityGraph(2): + * + * Cat + * owner -- Person + * + * LoadPlan: + * + * Cat + * owner -- Person + * address --- Address + * country -- Country + */ @Test public void testBasicLoadLoadPlanBuilding() { EntityManager em = getOrCreateEntityManager();