API resource IDs in Spring Boot and Hibernate
For route params, response payloads, and externally visible records, UUID V7 makes sense in Java when the application needs to own ID creation. Teams usually pick it here for better chronological ordering in storage, even though it is chosen for sortability more than for legacy compatibility.