HHH-8285 Initial JPA 2.1 entity graph support (EntityManager.find())

This commit is contained in:
Strong Liu 2013-10-31 17:30:32 +01:00
parent b3871f319b
commit 90ee768f45
1 changed files with 45 additions and 1 deletions

View File

@ -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();