On a database level I have a table product that has two columns: gtin and market along with other columns.
I want to write a java code that would be transformed to the following query:
select * from product where (gtin, market) IN (('USA', 1), ('CA',2), ('PL', 3), ('CZ, 4))
On a java code level I have special entity GtinMarket that is dedicated to store these two gtin and market values:
GtinMarket {
String gtin;
String market;
}
On a code level I would expect something like:
using(configuration)
.select()
.from(table(PRODUCT_TABLE))
.where((field(GTIN, Long.class),field(MARKET, Long.class)).in(gtinMarketList))
.fetch()
After some investigation I was unable to find a way to write such a code,
I would really really appreciate any help,
Thanks,