diff --git a/src/main/kotlin/com/restapi/domain/db.kt b/src/main/kotlin/com/restapi/domain/db.kt index 5c91bbf..28b1823 100644 --- a/src/main/kotlin/com/restapi/domain/db.kt +++ b/src/main/kotlin/com/restapi/domain/db.kt @@ -216,7 +216,7 @@ object Session { val s = database .sqlQuery("SELECT nextval('${seqName(entity)}');") .findOne()?.getLong("nextval") ?: throw DataNotFoundException - return "$entity-${"$s".padStart(10, '0')}" + return "$entity-${"$s".padStart(6, '0')}" } val redisUri = appConfig.redisUri().getOrDefault("redis://localhost:6379/0")