I am using Spring Data JPA.
I an entity like this
public class A {
@CollectionTable(name = \"B_ITEMS\", joinColumns = @JoinColumn(name = \"B_ID\"))
An approach could be to search a list of A objects for all the properties of B object. That means use filters for prop1, prop2 and prop3 together.
public interface ARepo extends PagingAndSortingRepository {
List findByBsProp1AndBsProp2AndBsProp3(String prop1, String prop2, String prop3);
}