我有一个需求,其中我有一个对象列表,我必须将其用于连接,并且应该作为函数中的参数传递。例如:
Class Dept{
String deptId;
String deptName;
int order;
}
Class Person{
String personId;
String personName;
int deptId;
}
So I've a list of Dept object.
List listOfDept;
Now I need to know if there's a way in JPA(JPQL) through which I can do something like this :
@Query( value = 'Select p from Person p where p.deptId = DeptObject.deptId (+) order by DeptObject.order')
List<Person> findPersonFromDeptListLeftOuterJoin( List<Dept> listOfDept )
图像有助于更好地理解例子,以防混淆
暂无答案!
目前还没有任何答案,快来回答吧!