add more stuff

This commit is contained in:
gowthaman.b 2024-01-05 12:15:53 +05:30
parent e09ff4ce2b
commit 2be4df0b6d

View File

@ -180,7 +180,7 @@ object Session {
val s = database val s = database
.sqlQuery("SELECT nextval('${seqName(entity)}');") .sqlQuery("SELECT nextval('${seqName(entity)}');")
.findOne()?.getLong("nextval") ?: throw DataNotFoundException .findOne()?.getLong("nextval") ?: throw DataNotFoundException
return String.format("%s-%s", entity, "$s".padStart(10, '0')) return "$entity-${"$s".padStart(10, '0')}"
} }
val redis = JedisPooled(appConfig.redisUri().getOrDefault("redis://localhost:6739/0")) val redis = JedisPooled(appConfig.redisUri().getOrDefault("redis://localhost:6739/0"))