S.
01/13/2023, 2:58 PMreturnGeneratedKeys
from the options here onDuplicateKeyUpdate().multiple().options
supposed to do? The query still returns a single Long value. Essentially I'm trying to bulk insert and retrieve all IDs with postgresqlS.
01/13/2023, 2:58 PMS.
01/13/2023, 3:08 PMToshihiro Nakamura
01/13/2023, 3:28 PMfalse
for a successful bulk insert.S.
01/13/2023, 3:33 PMToshihiro Nakamura
01/13/2023, 3:38 PMS.
01/13/2023, 3:40 PMQueryDsl.insert(table).onDuplicateKeyUpdate(table.userId, table.title).multiple(entities)
returns a Long of how many columns have been inserted/updatedS.
01/13/2023, 3:40 PMinsert into table (userId, title) values(a, b) returning id
is what I'm looking forToshihiro Nakamura
01/13/2023, 3:47 PMS.
01/13/2023, 9:27 PM