How to Implement a Custom, Sequence-Based ID Generator
A lot of applications use primary keys that are based on a sequence but use an additional prefix that contains semantic information. Here are some typical examples: A fixed String as a prefix followed by a sequence-based value of fixed or variable length, e.g., B_00001 or B_1 Year and month as a prefix followed by…