I am using Spring Data JPA.
I an entity like this
public class A { @CollectionTable(name = \"B_ITEMS\", joinColumns = @JoinColumn(name = \"B_ID\"))
You seem to be asking for a basic IN query in Spring Data - findBybsIn(List bs)
findBybsIn(List bs)