我有3个表。 此表用于存储客户的相关信息 Customers: ID Name
1 'Company A'
2 'Company B'
3 'Company C'
此表保存订单登录 Orders: ID CustomerID Quantity Date
1 1 200 01/01/2001
2 1 150 01/02/2001
我查询具有类似于以下记录的妥善保养楼宇数据库一个唯一的ID过滤重复的记录: ID NAME CODE
54 Building A a1234
97 Building A a1234
我使用下面的JPQL语句(其中“bCodes”进行查询时建筑规范数组): SELECT building FROM Building building WHERE building.NAME IN (:bC