I have a table with composite primary key. I want to find rows with some set of primary keys.
My table is:
create table test_tbl
(
id_part_1 varchar(36) not null,
id_part_2 varchar(36) not null,
some_data text not null,
constraint test_tbl_pkey
primary key (id_part_1, id_part_2)
);
My SQL query is:
SELECT * FROM test_tbl
WHERE (id_part_1, id_part_2) IN (('id_part_1_1', 'id_part_2_1'), ('id_part_1_2', 'id_part_2_2'));
So, how to implement this query with help of JOOQ? I don't generate JOOQ Dao, I just have JOOQ tables.