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

Better late than never!
Regarding the LongType issue, you can switch to:
super.configure(new TypeConfiguration().getBasicTypeRegistry().getRegisteredType(Long.class), params, serviceRegistry);

@vlad your post helped the community so much on SequenceStyleGenerator usage, I’m wondering if you have a plan to have another post for using SequenceStyleGenerator in Hibernate 6, as well as new supports for strong type. I believe it will be super helpful. (Sorry if this is unrelated)