Custom ID generator for Hibernate, Spring Framework inspired by @stripe
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-01 15:48:20 +02:00
.github devops: nothing scanned this repo, and nothing aged a release before proposing it (#59) 2026-08-01 15:48:20 +02:00
.idea add test workflow, update typeid-java to 0.3.1 (#1) 2025-01-23 21:21:40 +01:00
.junie doc: generated junie guidelines 2025-05-24 13:59:01 +02:00
gradle/wrapper add test workflow, update typeid-java to 0.3.1 (#1) 2025-01-23 21:21:40 +01:00
src add test workflow, update typeid-java to 0.3.1 (#1) 2025-01-23 21:21:40 +01:00
.gitignore add test workflow, update typeid-java to 0.3.1 (#1) 2025-01-23 21:21:40 +01:00
build.gradle.kts Bump org.hibernate.orm:hibernate-core from 6.6.9.Final to 7.0.0.Final (#25) 2025-05-26 08:20:04 +02:00
gradlew add test workflow, update typeid-java to 0.3.1 (#1) 2025-01-23 21:21:40 +01:00
gradlew.bat add test workflow, update typeid-java to 0.3.1 (#1) 2025-01-23 21:21:40 +01:00
LICENSE init empty 2024-04-24 14:09:42 +02:00
README.md readme - fix install 2024-04-24 16:27:55 +02:00
settings.gradle.kts custom generator 2024-04-24 15:13:11 +02:00

typeid-hibernate

Hibernate implementation of TypeID.

TypeIDs are a modern, type-safe, globally unique identifier based on the upcoming UUIDv7 standard. They provide a ton of nice properties that make them a great choice as the primary identifiers for your data in a database, APIs, and distributed systems. Read more about TypeIDs in their spec.

Installation

Starting with version 0.0.1, typeid-hibernate requires at least Java 17.

For installation via Gradle:

repositories {
    mavenCentral()
    maven {
        name = "GitHubPackages"
        url = uri("https://maven.pkg.github.com/landsman/typeid-hibernate")
        credentials {
            username = System.getenv("GITHUB_ACTOR")
            password = System.getenv("GITHUB_TOKEN")
        }
    }
}

dependencies {
    implementation("com.github.landsman:typeid-hibernate:0.0.1")
}

Usage

public class TestUserEntity {
    @Id
    @TypeIdHibernate(prefix = "u")
    private String id;
}