I use ICsvBeanReader to read CSV files. So what is the best workaround to update rows read from CSV file in the database without creating a new record if its id is new? I can't use
saveAll(Iterable)
because it will create a new record if it's id not found.
Example
private Long id;
private int quantity;
private String name;
CSV File
id,quantity,name
1,30,name1
2,30,name2
20,30,name3
...
Note that:- row 20 is not found in the table so ignore it in an update.