1. WHERE a.class IN (ClassName1, ClassName2)
2. WHERE ?1 member of a.collectionProperty
query.setParameter(1, collectionClassInstance)
VS
a join a.collectionProperty as b where b.id=?
1. WHERE a.class IN (ClassName1, ClassName2)
2. WHERE ?1 member of a.collectionProperty
query.setParameter(1, collectionClassInstance)
VS
a join a.collectionProperty as b where b.id=?