【发布时间】:2020-11-28 19:12:47
【问题描述】:
我们有
class A{
@id
int id;
List <B> bs;
}
在哪里
class B{
String prId;
int pr;
}
我需要一种使用 prId 获取 B 列表而不重复的方法。 所以请建议一种获取方式
[
{
prId: "18876",
pr: 1228876
},
{
prId: "123",
pr: 1228876
}
]
【问题讨论】:
标签: mongodb list spring-boot nosql