JPA 2 Criteria Fetch Path Navigation

前端 未结 6 667
我寻月下人不归
我寻月下人不归 2020-12-08 14:38

With JPA 2 Criteria Join method I can do the following:

    //Join Example (default inner join)
    int age = 25;
    CriteriaBuilder cb = entityManager.getC         


        
6条回答
  •  抹茶落季
    2020-12-08 15:12

    ugly but:

    Join p=t.fetch(Team_.players);
    

    will produce singel join with fetch in sql but is a ugly hack that works JBoss6.1 hibernate

提交回复
热议问题