You can use ExpressionFactory.matchDbExp("pk1",
val1).and(ExpressionFactory.matchDbExp("pk2", val2))
Then assemble the resulting AND expressions into a list of OR expressions
using ExpressionFactory.or()
pk1 = val1 AND pk2 = val2
OR pk1 = val3 AND pk2 = val4
OR pk1 = val5 AND pk2 = val6
Hello,
I'm currently working on a case related to this post where I try to fetch a
list of objects based on a list of primary keys. The difference for me is that
the primary key consists of multiple fields id db. If I try to use
ObjectForPK(), it accepts such multi-park PKs. However, if I try t