I had a situation where certain IDs needed to be skipped when inserting records. The details of my situation are not important; the general approach has more applications.In the majority of cases, the default method for generating a sequence in JPA is the best method. When you have a case where you need to generate [...]