标签: hibernate
我想将查询限制为允许的频道ID(出于安全原因)。这种方法行不通:
@FilterDef(name = "channelFilter", parameters = @ParamDef(name = "channelIds", type = "long[]")) @Filter(name = "channelFilter", condition = "id IN (:channelIds)")
我想知道是否甚至可以从List<Long> channelIds设置允许的ID列表。
List<Long> channelIds