Java Spring 规范搜索多个表

问题描述

我有两个实体请求和客户

RequestsEntity {
 requestsType
}

CustomerEntity {
 @ManyToOne
 requestsEntity
 customerName
}

我希望能够使用 Java Spring 规范找到所有具有客户名称“A”的 requestsEntities。

我尝试使用多种方式将客户实体与 requestsEntity 表连接起来。

Join<RequestsEntity,CustomerEntity> requestCustomerJoin = root.join("requestsEntity")
Join<RequestsEntity,CustomerEntity> requestCustomerJoin = root.join("fk_requests_id")

有人可以帮忙吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)