How to write a custom sequence-based String Id generator with JPA and Hibernate

Check out my StringSequenceIdentifierTest in my high-performance-java-persistence GitHub repository.

Just run the test and you’ll see that it works like a charm.