JPA @GeneratedValue – Don’t always want a generated Value
In a Spring Boot JPA application, I have a table where we will use a sequence to generate values. However, we also need to insert entries into the table that already have their values generated. (These values will also use the sequence to generate the IDs to prevent duplicates, but this will happen earlier in the workflow.)